Iterator fixes (#11234)
This commit is contained in:
parent
fb1c3a95a5
commit
6fc74cec55
8 changed files with 142 additions and 17 deletions
8
tests/iter/titerautoerr2.nim
Normal file
8
tests/iter/titerautoerr2.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <string> but expected 'int literal(1)'"
|
||||
line: 8
|
||||
"""
|
||||
|
||||
iterator b(): auto {.closure.} =
|
||||
yield 1
|
||||
if true: return "str"
|
||||
Loading…
Add table
Add a link
Reference in a new issue