documented static params

This commit is contained in:
Zahary Karadjov 2013-12-25 00:01:12 +02:00
commit 952dbc4b8f
3 changed files with 66 additions and 0 deletions

View file

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