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,9 @@
discard """
errormsg: "cannot infer the return type of 'bar'"
line: 6
"""
iterator bar(): auto =
discard
for t in bar():
discard