From 5851a1b5ad4edd46a433336e3c1e79eb7e7bd43f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 25 Jun 2009 18:19:05 -0700 Subject: [PATCH] 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 --- src/cmd/gc/subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1