]> Cypherpunks repositories - gostls13.git/commitdiff
bug041 not a bug.
authorRuss Cox <rsc@golang.org>
Tue, 30 Jun 2009 00:21:33 +0000 (17:21 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 30 Jun 2009 00:21:33 +0000 (17:21 -0700)
can now forward declare across files

R=r
DELTA=15  (0 added, 15 deleted, 0 changed)
OCL=30873
CL=30880

test/fixedbugs/bug041.go [deleted file]
test/golden.out

diff --git a/test/fixedbugs/bug041.go b/test/fixedbugs/bug041.go
deleted file mode 100644 (file)
index da708ab..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-// 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.
-
-// ! $G $D/$F.go || echo BUG: compilation succeeds incorrectly
-
-package main
-
-type t struct
-type s struct {
-  p *t  // BUG t never declared
-}
-
-func main() {
-  var s1 s;
-}
index 2bf920c25ec3059f6f8bc475c3b89bbc3c96f1f9..d83fd0cf88911525c99d97927da863b3b1e52101 100644 (file)
@@ -144,9 +144,6 @@ fixedbugs/bug037.go:6: s: undefined
 fixedbugs/bug039.go:6: variable x redeclared in this block
        previous declaration at fixedbugs/bug039.go:5
 
-=========== fixedbugs/bug041.go
-fixedbugs/bug041.go:5: export of incomplete type t
-
 =========== fixedbugs/bug049.go
 fixedbugs/bug049.go:6: illegal types for operand: EQ
        string