Nim/tests/typerel/temptynode.nim
Andreas Rumpf b47d9b7b91 fixes #4371
2016-07-08 10:34:12 +02:00

16 lines
216 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(): stmt =
result = newNimNode(nnkEmpty)
blah(test())