From 06187e647db875013b9049c1cfab78ccf936650d Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 5 Nov 2024 18:33:45 -0300 Subject: [PATCH] fix --- vlib/v/parser/expr.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/parser/expr.v b/vlib/v/parser/expr.v index bf17467ea6de52..e8871a24c41dfe 100644 --- a/vlib/v/parser/expr.v +++ b/vlib/v/parser/expr.v @@ -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() }