temptynode.nim 219 B

1234567891011121314151617
  1. discard """
  2. line: 16
  3. errormsg: "type mismatch: got (void)"
  4. """
  5. # bug #950
  6. import macros
  7. proc blah(x: proc (a, b: int): int) =
  8. echo x(5, 5)
  9. macro test(): untyped =
  10. result = newNimNode(nnkEmpty)
  11. blah(test())