summary refs log tree commit diff stats
path: root/compiler/ccgtrav.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-03-23 20:28:35 +0100
committerAraq <rumpf_a@web.de>2012-03-23 20:28:35 +0100
commit91db6bd9c9ecc7931cea2e74bd7f4ada51be8abb (patch)
treee3d5477bff4bd5c41e9ac21d23ad0187e4f27dcc /compiler/ccgtrav.nim
parent5c33f76517d5c0c1fc0bb1b8d4bba7417f2108d2 (diff)
downloadNim-91db6bd9c9ecc7931cea2e74bd7f4ada51be8abb.tar.gz
fixes #102
Diffstat (limited to 'compiler/ccgtrav.nim')
-rw-r--r--compiler/ccgtrav.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ccgtrav.nim b/compiler/ccgtrav.nim
index 83dda692b..8aaf5370f 100644
--- a/compiler/ccgtrav.nim
+++ b/compiler/ccgtrav.nim
@@ -70,6 +70,7 @@ proc genTraverseProc(c: var TTraversalClosure, accessor: PRope, typ: PType) =
       genTraverseProc(c, accessor.parentObj, typ.sons[i])
     if typ.n != nil: genTraverseProc(c, accessor, typ.n)
   of tyTuple:
+    let typ = GetUniqueType(typ)
     if typ.n != nil:
       genTraverseProc(c, accessor, typ.n)
     else: