fix tforwardgeneric

This commit is contained in:
Zahary Karadjov 2013-05-26 15:12:09 +03:00
commit d82a032566
4 changed files with 8 additions and 6 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 = 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}