titerautoerr1.nim 166 B

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