summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 34bdad2..0febc1c 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -339,6 +339,7 @@ static Type *type(Inferstate *st, Node *n)
case Nexpr: t = n->expr.type; break;
case Ndecl: t = decltype(n); break;
case Nfunc: t = n->func.type; break;
+ case Nidxinit: t = type(st, n->idxinit.init); break;
default:
t = NULL;
die("untypeable node %s", nodestr(n->type));