diff options
author | flywind <xzsflywind@gmail.com> | 2021-03-28 01:12:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 10:12:11 -0700 |
commit | 9c52009de61a119dda2def870e5fb21581dafc9a (patch) | |
tree | e566b9ee2326f75346186e7536be0d8b0befb030 | |
parent | cf5ce7616b3b2dcbe734dee7f48133c5dcf332f9 (diff) | |
download | Nim-9c52009de61a119dda2def870e5fb21581dafc9a.tar.gz |
close #7012 add testcase (#17537)
-rw-r--r-- | tests/tuples/t7012.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tuples/t7012.nim b/tests/tuples/t7012.nim new file mode 100644 index 000000000..32d441ddd --- /dev/null +++ b/tests/tuples/t7012.nim @@ -0,0 +1,7 @@ +discard """ + errormsg: "illegal recursion in type 'Node'" +""" + +type Node[T] = tuple + next: ref Node[T] +var n: Node[int] \ No newline at end of file |