mirror of
https://github.com/golang/go.git
synced 2025-05-29 11:25:43 +00:00
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
This commit is contained in:
parent
1ea28570ec
commit
5851a1b5ad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user