split the inline and closure iterators into different symbol kinds for easier discrimination between them

This commit is contained in:
Zahary Karadjov 2014-03-06 21:57:35 +02:00
commit 862c0ef83d
26 changed files with 110 additions and 84 deletions

View file

@ -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

View file

@ -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