summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-17 01:35:46 +0200
committerAraq <rumpf_a@web.de>2014-09-17 01:35:46 +0200
commit344488fa0d44b27f0b73fc5b4d27c2860e448257 (patch)
tree378616592e51647bf5292e6d4f340a76dc926d51
parent32b582bb0013ec59ed56fd825bcf7f21692cabcc (diff)
downloadNim-344488fa0d44b27f0b73fc5b4d27c2860e448257.tar.gz
ttypeclasses works again
-rw-r--r--compiler/semtypes.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 83cbca50f..559bf2e06 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -819,11 +819,10 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
       result.shouldHaveMeta
  
   of tyGenericInvokation:
+    for i in 1 .. <paramType.sonsLen:
+      let lifted = liftingWalk(paramType.sons[i])
+      if lifted != nil: paramType.sons[i] = lifted
     when false:
-      for i in 1 .. <paramType.sonsLen:
-        let lifted = liftingWalk(paramType.sons[i])
-        if lifted != nil: paramType.sons[i] = lifted
-
       let expanded = instGenericContainer(c, info, paramType,
                                           allowMetaTypes = true)
       result = liftingWalk(expanded, true)