summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2018-04-22 17:26:10 +0300
committerZahary Karadjov <zahary@gmail.com>2018-06-16 16:46:32 +0300
commit509d6e923284f1f02c5dbc64e43aee9df1a012d3 (patch)
tree79966ea543fd578fac9865c83f84011c9ea38b6d /compiler
parentfb27357b6217f53dc882e83fc128da578ad51764 (diff)
downloadNim-509d6e923284f1f02c5dbc64e43aee9df1a012d3.tar.gz
Bugfix: aliases to generic types were not considered implicit generic parameters
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 597522f6f..19bb53209 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -887,6 +887,9 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
       # disable the bindOnce behavior for the type class
       result = liftingWalk(paramType.base, true)
 
+  of tyAlias:
+    result = liftingWalk(paramType.base)
+
   of tySequence, tySet, tyArray, tyOpenArray,
      tyVar, tyLent, tyPtr, tyRef, tyProc:
     # XXX: this is a bit strange, but proc(s: seq)