fixes a silly regression
This commit is contained in:
parent
942db8c5f3
commit
7bcf7696f0
1 changed files with 3 additions and 1 deletions
|
|
@ -2904,7 +2904,9 @@ proc genBracedInit(p: BProc, n: PNode; isConst: bool): Rope =
|
|||
initLocExpr(p, n[0], d)
|
||||
result = "{(($1) $2),NIM_NIL}" % [getClosureType(p.module, t, clHalfWithEnv), rdLoc(d)]
|
||||
else:
|
||||
result = ~"NIM_NIL"
|
||||
var d: TLoc
|
||||
initLocExpr(p, n, d)
|
||||
result = rdLoc(d)
|
||||
of tyArray, tyTuple, tyOpenArray, tyVarargs:
|
||||
result = genConstSimpleList(p, n, isConst)
|
||||
of tyObject:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue