ref: e3c1f19a29528979f3ab31a5b1cb3de3cb4483cd
parent: 67c2baf190fa4d1b82c308ceb807076b71b4b866
author: Ori Bernstein <[email protected]>
date: Sun Aug 26 07:27:59 EDT 2012
Fix matching unions with arguments. Things work better without arguments swapped.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -673,7 +673,7 @@
args = n->expr.args;
for (i = 0; i < n->expr.nargs; i++)
if (args[i]->type == Nexpr)
- inferpat(st, val, args[i], bind, nbind);
+ inferpat(st, args[i], val, bind, nbind);
switch (exprop(n)) {
case Oucon:
uc = uconresolve(st, n);