diff options
author | Russ Cox <rsc@golang.org> | 2009-05-08 16:40:55 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-05-08 16:40:55 -0700 |
commit | 30184639e89a6480e41041b87ab4d3c1a77cbb02 (patch) | |
tree | aa32e9b943dfa5fee9dfc7a30e0196f671201ae4 /test/import1.go | |
parent | 7ba959f5ef7c1b1345606ff0a80179e0642102d7 (diff) | |
download | go-30184639e89a6480e41041b87ab4d3c1a77cbb02.tar.gz |
check for redeclaration of package name
R=r
DELTA=10 (10 added, 0 deleted, 0 changed)
OCL=28585
CL=28591
Diffstat (limited to 'test/import1.go')
-rw-r--r-- | test/import1.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/import1.go b/test/import1.go new file mode 100644 index 000000000..caa12224c --- /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" +) |