diff options
| author | Ian Lance Taylor <iant@golang.org> | 2009-08-21 17:42:41 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2009-08-21 17:42:41 -0700 |
| commit | 5261be20ebafedd878ccc22aa716ee4af7ddd16e (patch) | |
| tree | a4b96aeafdb902ac71459cdf4a873922dfcad568 /test/bugs | |
| parent | f861c7f61b9503bb01d2781487c267f8c320d42d (diff) | |
| download | go-5261be20ebafedd878ccc22aa716ee4af7ddd16e.tar.xz | |
A test for an interface which uses a forward declared type
which turns out to be invalid.
R=rsc
DELTA=15 (15 added, 0 deleted, 0 changed)
OCL=33691
CL=33693
Diffstat (limited to 'test/bugs')
| -rw-r--r-- | test/bugs/bug195.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/bugs/bug195.go b/test/bugs/bug195.go new file mode 100644 index 0000000000..4d679e2f34 --- /dev/null +++ b/test/bugs/bug195.go @@ -0,0 +1,12 @@ +// errchk $G $D/$F.go + +// 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. + +package main + +type I1 interface { I2 } // ERROR "interface" +type I2 int + +type I3 interface { int } // ERROR "interface" |
