8 lines
166 B
Nim
8 lines
166 B
Nim
discard """
|
|
errormsg: "type mismatch: got <string> but expected 'int literal(1)'"
|
|
line: 8
|
|
"""
|
|
|
|
iterator b(): auto {.closure.} =
|
|
yield 1
|
|
if true: return "str"
|