summary refs log tree commit diff stats
path: root/compiler/ccgexprs.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-12-19 15:34:29 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-12-24 17:33:27 +0100
commit767bd572899b60eec626c9193ba84f1ba3ffe472 (patch)
tree3943e5ba79976f98e7dca2e2b76a12f5fab62a7d /compiler/ccgexprs.nim
parentd1d017ae859181106c835413c48c46dc036d4c49 (diff)
downloadNim-767bd572899b60eec626c9193ba84f1ba3ffe472.tar.gz
fixes a regression
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r--compiler/ccgexprs.nim8
1 files 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..<typ.len:
+    for i in 0..<t.len:
       if i > 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..<toInt(lengthOrd(p.config, typ.sons[0])):
+    for i in 0..<toInt(lengthOrd(p.config, t.sons[0])):
       if i > 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: