summary refs log tree commit diff stats
path: root/compiler/astalgo.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-02-28 20:11:07 +0100
committerAraq <rumpf_a@web.de>2015-02-28 20:13:21 +0100
commit2ebeb0bd21973d90594ceab4656d25a0a102ff10 (patch)
tree112d3d81eb8afd4c702564c18e74e176f363d3a8 /compiler/astalgo.nim
parent549920a85f426fe7eaedafa68d29e04227997c5e (diff)
downloadNim-2ebeb0bd21973d90594ceab4656d25a0a102ff10.tar.gz
fixes #2169
Diffstat (limited to 'compiler/astalgo.nim')
-rw-r--r--compiler/astalgo.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim
index ea9534b1f..79c386080 100644
--- a/compiler/astalgo.nim
+++ b/compiler/astalgo.nim
@@ -387,6 +387,9 @@ proc debugType(n: PType, maxRecDepth=100): PRope =
     if n.sym != nil: 
       app(result, " ")
       app(result, n.sym.name.s)
+    if n.kind in IntegralTypes and n.n != nil:
+      app(result, ", node: ")
+      app(result, debugTree(n.n, 2, maxRecDepth-1, renderType=true))
     if (n.kind != tyString) and (sonsLen(n) > 0) and maxRecDepth != 0:
       app(result, "(")
       for i in countup(0, sonsLen(n) - 1):