fixes #4582
This commit is contained in:
parent
7426e9c246
commit
ce4d9e40fe
1 changed files with 2 additions and 1 deletions
|
|
@ -2177,7 +2177,8 @@ proc genConstSimpleList(p: BProc, n: PNode): Rope =
|
||||||
result = rope("{")
|
result = rope("{")
|
||||||
for i in countup(ord(n.kind == nkObjConstr), length - 2):
|
for i in countup(ord(n.kind == nkObjConstr), length - 2):
|
||||||
addf(result, "$1,$n", [genNamedConstExpr(p, n.sons[i])])
|
addf(result, "$1,$n", [genNamedConstExpr(p, n.sons[i])])
|
||||||
if length > 0: add(result, genNamedConstExpr(p, n.sons[length - 1]))
|
if length > ord(n.kind == nkObjConstr):
|
||||||
|
add(result, genNamedConstExpr(p, n.sons[length - 1]))
|
||||||
addf(result, "}$n", [])
|
addf(result, "}$n", [])
|
||||||
|
|
||||||
proc genConstSeq(p: BProc, n: PNode, t: PType): Rope =
|
proc genConstSeq(p: BProc, n: PNode, t: PType): Rope =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue