Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9f42ccb7
Commit
9f42ccb7
authored
Nov 09, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error rewording suggested by robert.
update comment. R=ken
http://go/go-review/1025031
parent
93c3f512
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
go.y
src/cmd/gc/go.y
+3
-8
No files found.
src/cmd/gc/go.y
View file @
9f42ccb7
...
@@ -238,15 +238,10 @@ import_package:
...
@@ -238,15 +238,10 @@ import_package:
if
(
strcmp
($
2
->
name
,
"main"
)
==
0
)
if
(
strcmp
($
2
->
name
,
"main"
)
==
0
)
yyerror
(
"cannot import package main"
);
yyerror
(
"cannot import package main"
);
//
TODO
(
rsc
):
This
is
not
quite
precise
enough
a
check
//
TODO
(
rsc
):
This
should
go
away
once
we
get
//
(
it
excludes
google
/
util
/
hash
from
importing
hash
)
//
rid
of
the
global
package
name
space
.
//
but
it
is
enough
to
reduce
confusion
during
the
//
2009
/
09
/
01
release
when
all
the
"import myself"
//
statements
have
to
go
away
in
programs
building
//
against
the
release
.
Once
the
programs
have
converted
//
it
should
probably
just
go
away
.
if
(
strcmp
($
2
->
name
,
package
)
==
0
&&
strcmp
(
package
,
"runtime"
)
!= 0)
if
(
strcmp
($
2
->
name
,
package
)
==
0
&&
strcmp
(
package
,
"runtime"
)
!= 0)
yyerror
(
"package cannot import itself
(anymore)
"
);
yyerror
(
"package cannot import itself"
);
}
}
import_there
:
import_there
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment