summary refs log blame commit diff stats
path: root/tests/iter/titerautoerr2.nim
blob: eb48a36f9af69cb1812070c35642eb52b39d04ec (plain) (tree)
1
2
3
4
5
6
7
8







                                                                       
discard """
  errormsg: "type mismatch: got <string> but expected 'int literal(1)'"
  line: 8
"""

iterator b(): auto {.closure.} =
  yield 1
  if true: return "str"