summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 0f462a3e2..727a9fbca 100644
--- a/eval.c
+++ b/eval.c
@@ -5665,6 +5665,10 @@ formal_assign(VALUE recv, NODE *node, int argc, const VALUE *argv, VALUE *local_
}
if (opt) {
rb_eval(recv, opt);
+ while (opt) {
+ ++i;
+ opt = opt->nd_next;
+ }
}
argc = ac + npost;
}