Revert "Revert "made some tests green""

This commit is contained in:
Zahary Karadjov 2013-08-19 01:34:40 +03:00
commit c6d0611112
6 changed files with 95 additions and 89 deletions

View file

@ -1359,7 +1359,8 @@ 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 = sfFromGeneric in s.flags or
(s.ast != nil and s.ast[genericParamsPos].kind != nkEmpty)
else: nil
proc isRoutine*(s: PSym): bool {.inline.} =