summary refs log tree commit diff stats
path: root/tests/typerel/temptynode.nim
blob: 8c71a609202912422ecaf385c4bfab6ef27b22c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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())