Bugfix: aliases to generic types were not considered implicit generic parameters

This commit is contained in:
Zahary Karadjov 2018-04-22 17:26:10 +03:00
commit 509d6e9232
2 changed files with 20 additions and 0 deletions

View file

@ -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)