summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-19 13:24:42 +0200
committerAraq <rumpf_a@web.de>2012-10-19 13:24:42 +0200
commitb20663ce192ff8012b2d73113a5d506b8526ec62 (patch)
tree6fa10af32f8dd3ad8c594a41a8355231f1857933 /lib
parent0df0012bdac2a987c47c6698e99b1e6645a05811 (diff)
downloadNim-b20663ce192ff8012b2d73113a5d506b8526ec62.tar.gz
fixes #232
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system/repr.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim
index 028887b4c..3c9ce73ac 100755
--- a/lib/system/repr.nim
+++ b/lib/system/repr.nim
@@ -185,7 +185,11 @@ when not defined(useNimRtl):
   proc reprRecord(result: var string, p: pointer, typ: PNimType,
                   cl: var TReprClosure) =
     add result, "["
+    let oldLen = result.len
     reprRecordAux(result, p, typ.node, cl)
+    if typ.base != nil: 
+      if oldLen != result.len: add result, ",\n"
+      reprRecordAux(result, p, typ.base.node, cl)
     add result, "]"
 
   proc reprRef(result: var string, p: pointer, typ: PNimType,