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 <int literal(1)> but expected 'string'"
line: 8
"""
iterator a(): auto {.closure.} =
if true: return "str"
yield 1