]> Cypherpunks repositories - gostls13.git/commitdiff
check for redeclaration of package name
authorRuss Cox <rsc@golang.org>
Fri, 8 May 2009 23:40:55 +0000 (16:40 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 8 May 2009 23:40:55 +0000 (16:40 -0700)
R=r
DELTA=10  (10 added, 0 deleted, 0 changed)
OCL=28585
CL=28591

test/import1.go [new file with mode: 0644]

diff --git a/test/import1.go b/test/import1.go
new file mode 100644 (file)
index 0000000..caa1222
--- /dev/null
@@ -0,0 +1,14 @@
+// errchk $G -e $D/$F.go
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// check for import conflicts
+
+package main
+
+import (
+       "bufio";
+       bufio "os";     // ERROR "redeclaration"
+)