From: Russ Cox Date: Fri, 8 May 2009 23:40:55 +0000 (-0700) Subject: check for redeclaration of package name X-Git-Tag: weekly.2009-11-06~1667 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9a861b6aaada5f2cca0fd510302bc5aeb6bcd2fa;p=gostls13.git check for redeclaration of package name R=r DELTA=10 (10 added, 0 deleted, 0 changed) OCL=28585 CL=28591 --- diff --git a/test/import1.go b/test/import1.go new file mode 100644 index 0000000000..caa12224c8 --- /dev/null +++ b/test/import1.go @@ -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" +)