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:
Russ Cox 2009-06-25 18:19:05 -07:00
parent 1ea28570ec
commit 5851a1b5ad

View File

@ -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