diff options
author | Russ Cox <rsc@golang.org> | 2010-02-16 17:44:15 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-16 17:44:15 -0800 |
commit | d08da5b375220d0500fc13e1ad24d370361b2592 (patch) | |
tree | acd39b0d45037edc5f7cb5fcc05e164fe642f0b4 /test/fixedbugs | |
parent | 05a15ffeb366ff68fa35ea7086d4f87684fcafaf (diff) | |
download | golang-d08da5b375220d0500fc13e1ad24d370361b2592.tar.gz |
gc: undo attempt at fixing recursive interface embedding
Fixes issue 582.
Update issue 287
Status: Accepted
Bug fix was too intrusive; undo and reopen issue.
R=ken2
CC=golang-dev
http://codereview.appspot.com/209044
Diffstat (limited to 'test/fixedbugs')
-rw-r--r-- | test/fixedbugs/bug195.go | 4 | ||||
-rw-r--r-- | test/fixedbugs/bug250.go | 19 | ||||
-rw-r--r-- | test/fixedbugs/bug256.go (renamed from test/fixedbugs/bug251.go) | 17 |
3 files changed, 8 insertions, 32 deletions
diff --git a/test/fixedbugs/bug195.go b/test/fixedbugs/bug195.go index 221a2eb09..27bbbd354 100644 --- a/test/fixedbugs/bug195.go +++ b/test/fixedbugs/bug195.go @@ -19,9 +19,9 @@ type I4 interface { } type I5 interface { - I6 // ERROR "interface" + I6 } type I6 interface { - I5 + I5 // ERROR "interface" } diff --git a/test/fixedbugs/bug250.go b/test/fixedbugs/bug250.go deleted file mode 100644 index cd28642bf..000000000 --- a/test/fixedbugs/bug250.go +++ /dev/null @@ -1,19 +0,0 @@ -// $G $D/$F.go || echo BUG: bug250 - -// Copyright 2010 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. - -package main - -type I1 interface { - m() I2 -} - -type I2 interface { - I1 -} - -var i1 I1 = i2 -var i2 I2 -var i2a I2 = i1 diff --git a/test/fixedbugs/bug251.go b/test/fixedbugs/bug256.go index f6365f1e6..37fa5f5c8 100644 --- a/test/fixedbugs/bug251.go +++ b/test/fixedbugs/bug256.go @@ -1,4 +1,4 @@ -// errchk $G $D/$F.go +// errchk $G -e $D/$F.go // Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style @@ -6,16 +6,11 @@ package main -type I1 interface { - m() I2 - I2 // ERROR "loop|interface" -} +type T U // bogus "invalid recursive type T" from 6g +type U int -type I2 interface { - I1 -} +const x T = 123 + +type V V // ERROR "invalid recursive type" -var i1 I1 = i2 -var i2 I2 -var i2a I2 = i1 |