mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lhs of pattern matching expression of should have a value
This commit is contained in:
parent
42edb05626
commit
25100c4697
1 changed files with 1 additions and 0 deletions
1
parse.y
1
parse.y
|
@ -1540,6 +1540,7 @@ expr : command_call
|
|||
}
|
||||
| arg keyword_in
|
||||
{
|
||||
value_expr($1);
|
||||
SET_LEX_STATE(EXPR_BEG|EXPR_LABEL);
|
||||
p->command_start = FALSE;
|
||||
$<num>$ = p->in_kwarg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue