diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-03-15 00:46:33 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-03-15 00:46:33 +0100 |
commit | faad6ed67ffcb450c8ab5b2697c917990686f80a (patch) | |
tree | 5fc86ad9c0d504c52a2a1d93f974a9efffe83b4a /tests | |
parent | b7cba7fa2945087df3ce674345c5f7408aa964a8 (diff) | |
parent | 669db4216e91dcd234f1ed56b7de44980f0bbcca (diff) | |
download | Nim-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.nim | 8 |
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) |