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







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

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