From: Russ Cox Date: Fri, 26 Jun 2009 01:19:05 +0000 (-0700) Subject: allow X-Git-Tag: weekly.2009-11-06~1323 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5851a1b5ad4edd46a433336e3c1e79eb7e7bd43f;p=gostls13.git 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 --- diff --git a/src/cmd/gc/subr.c b/src/cmd/gc/subr.c index 4f646fbc1e..9dfb445c63 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