Revert "Revert "fix tforwardgeneric""

This reverts commit e3f93241c3.
This commit is contained in:
Zahary Karadjov 2013-08-19 01:29:47 +03:00
commit fc858927f0
4 changed files with 8 additions and 6 deletions

View file

@ -1359,9 +1359,9 @@ proc getStrOrChar*(a: PNode): string =
proc isGenericRoutine*(s: PSym): bool =
case s.kind
of skProc, skTemplate, skMacro, skIterator, skMethod, skConverter:
result = s.ast != nil and s.ast[genericParamsPos].kind != nkEmpty
result = sfFromGeneric in s.flags
else: nil
proc isRoutine*(s: PSym): bool {.inline.} =
result = s.kind in {skProc, skTemplate, skMacro, skIterator, skMethod,
skConverter}