diff options
| author | Russ Cox <rsc@golang.org> | 2009-06-29 17:21:33 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-06-29 17:21:33 -0700 |
| commit | 7f67a16abc6a2abcef01ceefbb5823da088e03f7 (patch) | |
| tree | d6594dbf660120addab858c6713e69dd4fba3703 | |
| parent | 755e009ad2a874373454d488f9ea46648a8a9547 (diff) | |
| download | golang-7f67a16abc6a2abcef01ceefbb5823da088e03f7.tar.gz | |
bug041 not a bug.
can now forward declare across files
R=r
DELTA=15 (0 added, 15 deleted, 0 changed)
OCL=30873
CL=30880
| -rw-r--r-- | test/fixedbugs/bug041.go | 16 | ||||
| -rw-r--r-- | test/golden.out | 3 |
2 files changed, 0 insertions, 19 deletions
diff --git a/test/fixedbugs/bug041.go b/test/fixedbugs/bug041.go deleted file mode 100644 index da708ab98..000000000 --- a/test/fixedbugs/bug041.go +++ /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; -} diff --git a/test/golden.out b/test/golden.out index 2bf920c25..d83fd0cf8 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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 |
