]> Cypherpunks repositories - gostls13.git/commitdiff
Get this bug back to the intended state: bug1.go is making a
authorIan Lance Taylor <iant@golang.org>
Wed, 21 Jan 2009 20:52:22 +0000 (12:52 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 21 Jan 2009 20:52:22 +0000 (12:52 -0800)
reference to a type which should not be visible.  The test
currently fails with 6g.

R=rsc
DELTA=7  (4 added, 0 deleted, 3 changed)
OCL=23222
CL=23225

test/fixedbugs/bug083.dir/bug0.go
test/fixedbugs/bug083.dir/bug1.go

index 67ea271a0dae8507138ee532ee68141c55c56095..e312256c461d3930b7cf7c9a2763a436ec298954 100644 (file)
@@ -4,7 +4,7 @@
 
 package bug0
 
-type T0 struct {
+type t0 struct {
 }
 
-var V0 T0
+var V0 t0
index 32cda73b4f6b2e90b78d33bed0ad059bb269a0ac..ac6a73844d31b4a210ba9b22cea1eedcd23d82db 100644 (file)
@@ -6,4 +6,8 @@ package bug1
 
 import "bug0"
 
-var v1 bug0.T0
+// This is expected to fail--t0 is in package bug0 and should not be
+// visible here in package bug1.  The test for failure is in
+// ../bug083.go.
+
+var v1 bug0.t0