summaryrefslogtreecommitdiff
path: root/src/cmd/gc/reflect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gc/reflect.c')
-rw-r--r--src/cmd/gc/reflect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/gc/reflect.c b/src/cmd/gc/reflect.c
index 07b426508..62759bcba 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;
}