Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 5, 2024
1 parent a7b4b83 commit 06187e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vlib/v/parser/expr.v
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ fn (mut p Parser) check_expr(precedence int) !ast.Expr {
spos := p.tok.pos()
p.next()
p.check(.lpar)
old_inside_call_args := p.inside_call_args
p.inside_call_args = true
expr := p.expr(0)
p.inside_call_args = old_inside_call_args
if p.tok.kind == .comma && p.peek_tok.kind == .rpar {
p.next()
}
Expand Down

0 comments on commit 06187e6

Please sign in to comment.