diff --git a/tests/tuples/t7012.nim b/tests/tuples/t7012.nim new file mode 100644 index 0000000000..32d441dddd --- /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