From 7bcf7696f0b885b377750f7d88f021db9fe352ca Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 23 Dec 2019 17:27:36 +0100 Subject: [PATCH] fixes a silly regression --- compiler/ccgexprs.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 44a9b794b1..9eb42e28cd 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -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: