Skip to content

Commit

Permalink
push_pktbl is needed for hash pattern, not for array pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tsj committed Jun 14, 2020
1 parent a451648 commit f7906a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parse.y
Expand Up @@ -4048,10 +4048,9 @@ p_expr_basic : p_value
$$ = new_array_pattern_tail(p, Qnone, 0, 0, Qnone, &@$);
$$ = new_array_pattern(p, $1, Qnone, $$, &@$);
}
| tLBRACK {$<tbl>$ = push_pktbl(p);} p_args rbracket
| tLBRACK p_args rbracket
{
pop_pktbl(p, $<tbl>2);
$$ = new_array_pattern(p, Qnone, Qnone, $3, &@$);
$$ = new_array_pattern(p, Qnone, Qnone, $2, &@$);
}
| tLBRACK rbracket
{
Expand Down

0 comments on commit f7906a7

Please sign in to comment.