ref: 6c0abd35bf78b06cc3e25d36312609934e443952
parent: c3955db0543c35b4adb822f5beca686e8c3726ef
author: Ori Bernstein <[email protected]>
date: Mon Oct 21 17:38:54 EDT 2013
Remove a spurious check to allow arrays to match
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -914,10 +914,12 @@
if (args[i]->type == Nexpr)
inferpat(st, args[i], val, bind, nbind);
switch (exprop(n)) {
- case Otup: infernode(st, n, NULL, NULL); break;
- case Ostruct: infernode(st, n, NULL, NULL); break;
- case Olit: infernode(st, n, NULL, NULL); break;
- case Omemb: infernode(st, n, NULL, NULL); break;
+ case Otup:
+ case Ostruct:
+ case Oarr:
+ case Olit:
+ case Omemb:
+ infernode(st, n, NULL, NULL); break;
case Oucon: inferucon(st, n, &n->expr.isconst); break;
case Ovar:
s = getdcl(curstab(), args[0]);