mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 11:54:11 +00:00
fixes #5081
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -8,4 +8,7 @@ discard """
|
||||
import jester
|
||||
import asyncdispatch, asyncnet
|
||||
|
||||
# bug #5081
|
||||
import nre
|
||||
|
||||
echo "hello"
|
||||
|
||||
Reference in New Issue
Block a user