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
27c4e7e7
Commit
27c4e7e7
authored
Sep 01, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch package net import "net" for release
R=ken OCL=34205 CL=34207
parent
237c8ab4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
go.y
src/cmd/gc/go.y
+10
-0
bug2.go
test/fixedbugs/bug133.dir/bug2.go
+1
-1
No files found.
src/cmd/gc/go.y
View file @
27c4e7e7
...
...
@@ -230,6 +230,16 @@ import_package:
pkgimportname = $2;
if(strcmp($2->name, "main") == 0)
yyerror("cannot import package main");
// TODO(rsc): This is not quite precise enough a check
// (it excludes google/util/hash from importing hash)
// 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)
yyerror("package cannot import itself (anymore)");
}
import_there:
...
...
test/fixedbugs/bug133.dir/bug2.go
View file @
27c4e7e7
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
bug
1
package
bug
2
import
"./bug1"
import
"./bug0"
...
...
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