fix #15836 proc arg return type auto unexpectly match proc with concrete type
This commit is contained in:
parent
ef190f349d
commit
0cd9bdcf9f
9 changed files with 23 additions and 12 deletions
|
|
@ -2047,6 +2047,9 @@ template detailedInfo*(sym: PSym): string =
|
|||
proc isInlineIterator*(typ: PType): bool {.inline.} =
|
||||
typ.kind == tyProc and tfIterator in typ.flags and typ.callConv != ccClosure
|
||||
|
||||
proc isIterator*(typ: PType): bool {.inline.} =
|
||||
typ.kind == tyProc and tfIterator in typ.flags
|
||||
|
||||
proc isClosureIterator*(typ: PType): bool {.inline.} =
|
||||
typ.kind == tyProc and tfIterator in typ.flags and typ.callConv == ccClosure
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue