ref: c3dc6ac40cf15b3940567eb95804b972afb9b5af
parent: a70314d6736b566ae20411e6cbb83d3e6cfe3e98
author: Ori Bernstein <[email protected]>
date: Mon Jan 9 19:18:31 EST 2012
Error out on underconstrained types.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -424,8 +424,8 @@
for (i = 0; i < t->nsub; i++)
t->sub[i] = tyfin(ctx, t->sub[i]);
}
- //if (t->type == Tyvar)
- // fatal(t->line, "underconstrained type %s near %s", tyfmt(buf, 1024, t), ctxstr(ctx));
+ if (t->type == Tyvar)
+ fatal(t->line, "underconstrained type %s near %s", tyfmt(buf, 1024, t), ctxstr(ctx));
return t;
}