fixes #950
This commit is contained in:
parent
34110fc118
commit
eae30d1961
2 changed files with 18 additions and 2 deletions
16
tests/typerel/temptynode.nim
Normal file
16
tests/typerel/temptynode.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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())
|
||||
Loading…
Add table
Add a link
Reference in a new issue