mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed a bug in keyword arguments in block parameters; fix #4810
This is caused by incomplete fix in #4746
This commit is contained in:
@@ -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);
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user