discard """ errormsg: "type mismatch: got but expected 'string'" line: 8 """ iterator a(): auto {.closure.} = if true: return "str" yield 1