Nim/tests/typerel/temptynode.nim
2018-12-11 21:23:21 +01:00

16 lines
219 B
Nim

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