1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:07:56 -07:00

check for redeclaration of package name

R=r
DELTA=10  (10 added, 0 deleted, 0 changed)
OCL=28585
CL=28591
This commit is contained in:
Russ Cox 2009-05-08 16:40:55 -07:00
parent 0880593436
commit 9a861b6aaa

14
test/import1.go Normal file
View File

@ -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"
)