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 =
|
proc genConstSimpleList(p: BProc, n: PNode): Rope =
|
||||||
var length = sonsLen(n)
|
var length = sonsLen(n)
|
||||||
result = rope("{")
|
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)])
|
addf(result, "{$1}", [genTypeInfo(p.module, n.typ)])
|
||||||
if n.len > 1: add(result, ",")
|
if n.len > 1: add(result, ",")
|
||||||
for i in countup(ord(n.kind == nkObjConstr), length - 2):
|
for i in countup(ord(n.kind == nkObjConstr), length - 2):
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,7 @@ discard """
|
||||||
import jester
|
import jester
|
||||||
import asyncdispatch, asyncnet
|
import asyncdispatch, asyncnet
|
||||||
|
|
||||||
|
# bug #5081
|
||||||
|
import nre
|
||||||
|
|
||||||
echo "hello"
|
echo "hello"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue