Nim/tests/typerel/temptynode.nim
2017-07-25 09:28:23 +02:00

16 lines
219 B
Nim

discard """
line: 16
errormsg: "type mismatch: got (void)"
"""
# bug #950
import macros
proc blah(x: proc (a, b: int): int) =
echo x(5, 5)
macro test(): untyped =
result = newNimNode(nnkEmpty)
blah(test())