Files
Nim/tests/macros/treturnsempty.nim
2017-07-25 09:28:23 +02:00

12 lines
161 B
Nim

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