ref: 39e533eb005ede822948726073f3a0925e3998b8
parent: 529a44cfde2e1e34060c545c915a9ebf40f5b1a6
author: Ori Bernstein <[email protected]>
date: Mon Nov 10 13:32:36 EST 2014
Fix typo in tree walk code. Copy paste cod error. It worked, but was a bit fishy.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1670,7 +1670,7 @@
for (i = 0; i < n->func.nargs; i++)
putbindings(st, st->tybindings[st->ntybindings - 1], n->func.args[i]->decl.type);
pushstab(n->func.scope);
- inferstab(st, n->block.scope);
+ inferstab(st, n->func.scope);
inferfunc(st, n);
popstab();
break;