fixes #5081
This commit is contained in:
parent
8494338bcb
commit
2a7b4fda78
2 changed files with 5 additions and 1 deletions
|
|
@ -2152,7 +2152,8 @@ proc genNamedConstExpr(p: BProc, n: PNode): Rope =
|
|||
proc genConstSimpleList(p: BProc, n: PNode): Rope =
|
||||
var length = sonsLen(n)
|
||||
result = rope("{")
|
||||
if n.kind == nkObjConstr and not isObjLackingTypeField(n.typ):
|
||||
if n.kind == nkObjConstr and not isObjLackingTypeField(n.typ) and
|
||||
not p.module.compileToCpp:
|
||||
addf(result, "{$1}", [genTypeInfo(p.module, n.typ)])
|
||||
if n.len > 1: add(result, ",")
|
||||
for i in countup(ord(n.kind == nkObjConstr), length - 2):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue