diff options
-rw-r--r-- | compiler/semtypes.nim | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 4badf8f4e..83cbca50f 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -819,13 +819,14 @@ 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 - - let expanded = instGenericContainer(c, info, paramType, - allowMetaTypes = true) - result = liftingWalk(expanded, true) + 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) of tyUserTypeClass, tyBuiltInTypeClass, tyAnd, tyOr, tyNot: result = addImplicitGeneric(copyType(paramType, getCurrOwner(), true)) |