bug041 not a bug.

can now forward declare across files

R=r
DELTA=15  (0 added, 15 deleted, 0 changed)
OCL=30873
CL=30880
This commit is contained in:
Russ Cox 2009-06-29 17:21:33 -07:00
parent d3a412a5ab
commit df36629d76
2 changed files with 0 additions and 19 deletions

View File

@ -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;
}

View 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