From 767bd572899b60eec626c9193ba84f1ba3ffe472 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 19 Dec 2019 15:34:29 +0100 Subject: [PATCH] fixes a regression --- compiler/ccgexprs.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 04496c5a2..9fca9604d 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2742,15 +2742,15 @@ proc getDefaultValue(p: BProc; typ: PType; info: TLineInfo): Rope = result = rope"{}" of tyTuple: result = rope"{" - for i in 0.. 0: result.add ", " - result.add getDefaultValue(p, typ[i], info) + result.add getDefaultValue(p, t[i], info) result.add "}" of tyArray: result = rope"{" - for i in 0.. 0: result.add ", " - result.add getDefaultValue(p, typ.sons[1], info) + result.add getDefaultValue(p, t.sons[1], info) result.add "}" #result = rope"{}" of tySet: