Commit 5851a1b5 authored by Russ Cox's avatar Russ Cox

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
parent 1ea28570
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment