summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index d4d953757..85928ee75 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -684,6 +684,8 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
       result.sons.setLen(result.sons.len - 1)
   of tyTypeClass:
     result = addImplicitGeneric(copyType(paramType, getCurrOwner(), false))
+  of tyExpr:
+    result = addImplicitGeneric(newTypeS(tyGenericParam, c))
   else: nil
 
   # result = liftingWalk(paramType)