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:
parent
0880593436
commit
9a861b6aaa
14
test/import1.go
Normal file
14
test/import1.go
Normal 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"
|
||||
)
|
Loading…
Reference in New Issue
Block a user