Revert "fix tforwardgeneric"

This reverts commit d82a032566.
This commit is contained in:
Araq 2013-05-27 23:18:15 +02:00
commit e3f93241c3
4 changed files with 6 additions and 8 deletions

View file

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