fixes a silly regression

This commit is contained in:
Araq
2019-12-23 17:27:36 +01:00
committed by Andreas Rumpf
parent 942db8c5f3
commit 7bcf7696f0

View File

@@ -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: