parent
e1b668c868
commit
c67abd7e61
6 changed files with 89 additions and 96 deletions
|
|
@ -1285,8 +1285,7 @@ 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 or
|
||||
(s.ast != nil and s.ast[genericParamsPos].kind != nkEmpty)
|
||||
result = sfFromGeneric in s.flags
|
||||
else: nil
|
||||
|
||||
proc isRoutine*(s: PSym): bool {.inline.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue