Files
Nim/tests/macros/treturnsempty.nim
2015-04-25 23:16:57 +02:00

13 lines
159 B
Nim

discard """
errormsg: "type mismatch"
line: 11
"""
# bug #2372
macro foo(dummy: int): stmt =
discard
proc takeStr(s: string) = echo s
takeStr foo(12)