From 30184639e89a6480e41041b87ab4d3c1a77cbb02 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 8 May 2009 16:40:55 -0700 Subject: check for redeclaration of package name R=r DELTA=10 (10 added, 0 deleted, 0 changed) OCL=28585 CL=28591 --- test/import1.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/import1.go (limited to 'test/import1.go') 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" +) -- cgit v1.2.1