Iterator fixes (#11234)

This commit is contained in:
Jasper Jenkins 2019-05-13 11:50:21 -07:00 • committed by Andreas Rumpf
commit 6fc74cec55
8 changed files with 142 additions and 17 deletions

View 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"