shithub: mc

Download patch

ref: e7ba66a1d2698910fcc0ba4aeadff491fb0ead94
parent: 63a36e064a2f9c436a7784d142ef352860948a68
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Jan 2 08:54:17 EST 2017

Remember to mark pattern match vars as const.

	This was affecting expressions in pattern matching

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1350,6 +1350,7 @@
 		}
 		settype(st, n, t);
 		n->expr.did = s->decl.did;
+		n->expr.isconst = s->decl.isconst;
 		break;
 	case Oaddr:
 		infernode(st, np, NULL, NULL);