titerautoerr2.nim 166 B

123456789
  1. discard """
  2. errormsg: "type mismatch: got <string> but expected 'int literal(1)'"
  3. line: 8
  4. """
  5. iterator b(): auto {.closure.} =
  6. yield 1
  7. if true: return "str"