From 509d6e923284f1f02c5dbc64e43aee9df1a012d3 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 22 Apr 2018 17:26:10 +0300 Subject: Bugfix: aliases to generic types were not considered implicit generic parameters --- compiler/semtypes.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler') 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) -- cgit 1.4.1-2-gfad0