generic proc type works again
This commit is contained in:
parent
1c241e17fe
commit
113a1c450c
1 changed files with 7 additions and 6 deletions
|
|
@ -819,13 +819,14 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
|
||||||
result.shouldHaveMeta
|
result.shouldHaveMeta
|
||||||
|
|
||||||
of tyGenericInvokation:
|
of tyGenericInvokation:
|
||||||
for i in 1 .. <paramType.sonsLen:
|
when false:
|
||||||
let lifted = liftingWalk(paramType.sons[i])
|
for i in 1 .. <paramType.sonsLen:
|
||||||
if lifted != nil: paramType.sons[i] = lifted
|
let lifted = liftingWalk(paramType.sons[i])
|
||||||
|
if lifted != nil: paramType.sons[i] = lifted
|
||||||
|
|
||||||
let expanded = instGenericContainer(c, info, paramType,
|
let expanded = instGenericContainer(c, info, paramType,
|
||||||
allowMetaTypes = true)
|
allowMetaTypes = true)
|
||||||
result = liftingWalk(expanded, true)
|
result = liftingWalk(expanded, true)
|
||||||
|
|
||||||
of tyUserTypeClass, tyBuiltInTypeClass, tyAnd, tyOr, tyNot:
|
of tyUserTypeClass, tyBuiltInTypeClass, tyAnd, tyOr, tyNot:
|
||||||
result = addImplicitGeneric(copyType(paramType, getCurrOwner(), true))
|
result = addImplicitGeneric(copyType(paramType, getCurrOwner(), true))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue