shithub: mc

Download patch

ref: 3355f31cb1efe35fab21e39e27c5cadcda93d51d
parent: e8121eb38f6c825fc4638d84521c51dc6cfe761b
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jul 13 20:36:08 EDT 2018

Fix stupid mistake.

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1509,7 +1509,7 @@
 		unify(n, uc->etype, type(n->expr.args[1]));
 		*isconst = n->expr.args[1]->expr.isconst;
 	}
-	settype(n, delayeducon(t));
+	settype(n, delayeducon(uc->utype));
 }
 
 static void