ref: 949eb0559d34c181134b810d16d845f7609c2222
parent: e8489f8f73d3b4bffc9e33f7045cb8e0329bb067
author: Ori Bernstein <[email protected]>
date: Wed Aug 15 17:11:37 EDT 2012
Look up values in the correct namespace.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -205,7 +205,7 @@
if (t->name->name.ns) {
ns = getns_str(ns, t->name->name.ns);
}
- if (!(lu = gettype(curstab(), t->name)))
+ if (!(lu = gettype(ns, t->name)))
fatal(t->name->line, "Could not resolve type %s", namestr(t->name));
tytab[t->tid] = lu;
}