summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-21 15:54:09 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-21 15:54:09 -0700
commitc2f307b1be950ca0a1e59b48143c41cde47a6cdd (patch)
tree117ebe3af04beb187ebe3226b052b912289c6237 /parse
parenteb9b1b09df9967e63bfe4438e751bf2667793b8a (diff)
downloadmc-c2f307b1be950ca0a1e59b48143c41cde47a6cdd.tar.gz
Move tests from test/ directory to libstd/test/
Use mbld to run this shit.
Diffstat (limited to 'parse')
-rw-r--r--parse/infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 05d4274..b60d79d 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1726,7 +1726,7 @@ static Type *tyfix(Inferstate *st, Node *ctx, Type *orig, int noerr)
if (t->type == Tyvar && !noerr) {
if (debugopt['T'])
dump(file, stdout);
- lfatal(t->loc, "underconstrained type %s near %s", tyfmt(buf, 1024, t), ctxstr(st, ctx));
+ fatal(ctx, "underconstrained type %s near %s", tyfmt(buf, 1024, t), ctxstr(st, ctx));
}
if (debugopt['u'] && !tyeq(orig, t)) {