From a30b52eb6410bff3430c6a1786761a6ded4cd88d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 14 Apr 2018 15:44:05 +0200 Subject: [PATCH] fixes #7610 --- compiler/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/parser.nim b/compiler/parser.nim index c8edd5136..0019b7acb 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -400,7 +400,7 @@ proc exprColonEqExprListAux(p: var TParser, endTok: TTokType, result: PNode) = if p.tok.tokType != tkComma: break getTok(p) # (1,) produces a tuple expression - if endTok == tkParRi and p.tok.tokType == tkParRi: + if endTok == tkParRi and p.tok.tokType == tkParRi and result.kind == nkPar: result.kind = nkTupleConstr skipComment(p, a) optPar(p)