Nim/tests/typerel/temptynode.nim
Andreas Rumpf eae30d1961 fixes #950
2016-05-12 00:38:15 +02:00

16 lines
217 B
Nim

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