diff --git a/src/cmd/gc/reflect.c b/src/cmd/gc/reflect.c index 07b42650817..62759bcbae2 100644 --- a/src/cmd/gc/reflect.c +++ b/src/cmd/gc/reflect.c @@ -629,6 +629,7 @@ typename(Type *t) n->ullman = 1; n->class = PEXTERN; n->xoffset = 0; + n->typecheck = 1; s->def = n; signatlist = list(signatlist, typenod(t)); @@ -638,6 +639,7 @@ typename(Type *t) n->type = ptrto(s->def->type); n->addable = 1; n->ullman = 2; + n->typecheck = 1; return n; }