summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-03-15 00:46:33 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-03-15 00:46:33 +0100
commitfaad6ed67ffcb450c8ab5b2697c917990686f80a (patch)
tree5fc86ad9c0d504c52a2a1d93f974a9efffe83b4a /tests
parentb7cba7fa2945087df3ce674345c5f7408aa964a8 (diff)
parent669db4216e91dcd234f1ed56b7de44980f0bbcca (diff)
downloadNim-faad6ed67ffcb450c8ab5b2697c917990686f80a.tar.gz
Merge pull request #2333 from def-/recursive-type
Fix infinite recursion in semtypes with recursive types
Diffstat (limited to 'tests')
-rw-r--r--tests/types/tinfiniterecursion.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/types/tinfiniterecursion.nim b/tests/types/tinfiniterecursion.nim
new file mode 100644
index 000000000..52eaaa93b
--- /dev/null
+++ b/tests/types/tinfiniterecursion.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "illegal recursion in type 'XIM'"
+  line: 8
+"""
+
+type
+  XIM* = ptr XIM
+  XIMProc* = proc (a2: XIM)