split the inline and closure iterators into different symbol kinds for easier discrimination between them
This commit is contained in:
parent
5324c9ebba
commit
862c0ef83d
26 changed files with 110 additions and 84 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 10
|
||||
errormsg: "value returned by statement has to be discarded"
|
||||
errormsg: "value of type 'string' has to be discarded"
|
||||
"""
|
||||
|
||||
# bug #578
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ discard """
|
|||
"""
|
||||
|
||||
proc factory(a, b: int): iterator (): int =
|
||||
iterator foo(): int =
|
||||
iterator foo(): int {.closure.} =
|
||||
var x = a
|
||||
while x <= b:
|
||||
yield x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue