summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-05-12 00:19:38 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-05-12 00:38:15 +0200
commiteae30d19611e1c4455c1b0f5a3674254ce29a99b (patch)
treed595298f61d4e70eae8e75a6644f1e53aba01de8 /tests
parent34110fc118a063822c74b9615ff30a2e366aa8d4 (diff)
downloadNim-eae30d19611e1c4455c1b0f5a3674254ce29a99b.tar.gz
fixes #950
Diffstat (limited to 'tests')
-rw-r--r--tests/typerel/temptynode.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/typerel/temptynode.nim b/tests/typerel/temptynode.nim
new file mode 100644
index 000000000..91e45f3ca
--- /dev/null
+++ b/tests/typerel/temptynode.nim
@@ -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())