mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 17:41:45 +00:00
* Fix #14911
* Add testcase
* Fix test
(cherry picked from commit 5bd2da3f64)
This commit is contained in:
@@ -2401,7 +2401,7 @@ proc checkPar(c: PContext; n: PNode): TParKind =
|
||||
for i in 0 ..< length:
|
||||
if result == paTupleFields:
|
||||
if (n.sons[i].kind != nkExprColonExpr) or
|
||||
n.sons[i].sons[0].kind notin {nkSym, nkIdent}:
|
||||
n.sons[i].sons[0].kind notin {nkSym, nkIdent, nkAccQuoted}:
|
||||
localError(c.config, n.sons[i].info, errNamedExprExpected)
|
||||
return paNone
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user