diff options
author | Clyybber <darkmine956@gmail.com> | 2020-07-07 10:21:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 10:21:18 +0200 |
commit | 5bd2da3f6461ef4dbcfd1f0c35178fa8fa9b5368 (patch) | |
tree | db6995ea3847b0f8533ef0b101f0c0e824450b4f /compiler | |
parent | ebd97884a0134ba2f88e19f647585aa6133536aa (diff) | |
download | Nim-5bd2da3f6461ef4dbcfd1f0c35178fa8fa9b5368.tar.gz |
Fix #14911 (#14922) [backport]
* Fix #14911 * Add testcase * Fix test
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index a9d45615e..de9f2198a 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -2432,7 +2432,7 @@ proc checkPar(c: PContext; n: PNode): TParKind = for i in 0..<n.len: if result == paTupleFields: if (n[i].kind != nkExprColonExpr) or - n[i][0].kind notin {nkSym, nkIdent}: + n[i][0].kind notin {nkSym, nkIdent, nkAccQuoted}: localError(c.config, n[i].info, errNamedExprExpected) return paNone else: |