diff options
author | Russ Cox <rsc@golang.org> | 2009-06-25 18:19:05 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-25 18:19:05 -0700 |
commit | 34daf17ae95d9da33f573085841a99a34129f41e (patch) | |
tree | 266a105af904f399a311a2e1ce177b190cdf2669 /src | |
parent | a4895d5ee7224fe0a79cb87a6543d9623db3aa7f (diff) | |
download | golang-34daf17ae95d9da33f573085841a99a34129f41e.tar.gz |
allow
package main
type t interface
type t interface{ m(map[t]bool) }
type m map[t] int
making it work without the forward declaration will require a second pass.
R=ken
OCL=30773
CL=30773
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/gc/subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 4f646fbc1..9dfb445c6 100644 --- a/src/cmd/gc/subr.c +++ b/src/cmd/gc/subr.c @@ -333,7 +333,7 @@ algtype(Type *t) a = ASTRING; // string else if(isnilinter(t)) a = ANILINTER; // nil interface - else if(t->etype == TINTER) + else if(t->etype == TINTER || t->etype == TFORWINTER) a = AINTER; // interface else a = ANOEQ; // just bytes, but no hash/eq |