Revert "Revert "made some tests green""
This commit is contained in:
parent
a453d8d64d
commit
c6d0611112
6 changed files with 95 additions and 89 deletions
|
|
@ -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.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue