more test made green
the lambda lifting was trying too hard to ignore generic prods isGenericRoutine was producing false-negatives and only this allowed for some of the warning and error messages to be triggered. some files with mixed line endings were fixed
This commit is contained in:
parent
4ae4005f80
commit
911e6e710f
6 changed files with 96 additions and 89 deletions
|
|
@ -1285,7 +1285,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