ref: 9b6e7069755a73fb43acd86fd76aafb2178a6f0c
parent: 7ec5af48e7c7fa40c494b5572fcfa04d3a998cba
author: Ori Bernstein <[email protected]>
date: Sun Jan 14 17:59:26 EST 2018
Pass in the context node to our error printing..
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -117,7 +117,7 @@
t = NULL;
if (n->type == Nexpr && exprtype(n) != NULL)
- t = tyfix(NULL, exprtype(n), 1);
+ t = tyfix(n, exprtype(n), 1);
else if (n->type == Ndecl && decltype(n) != NULL)
t = tyfix(n, decltype(n), 1);