Fixed a bug in keyword arguments in block parameters; fix #4810

This is caused by incomplete fix in #4746
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-11-08 14:05:58 +09:00
parent 8ff001ef30
commit 7750c61e29
+3 -1
View File
@@ -3329,11 +3329,13 @@ f_kw : f_label arg
f_block_kw : f_label primary_value
{
$$ = new_kw_arg(p, $1, $2);
$$ = new_kw_arg(p, $1, cons($2, locals_node(p)));
local_unnest(p);
}
| f_label
{
$$ = new_kw_arg(p, $1, 0);
local_unnest(p);
}
;