close #7012 add testcase (#17537)

This commit is contained in:
flywind
2021-03-28 01:12:11 +08:00
committed by GitHub
parent cf5ce7616b
commit 9c52009de6

7
tests/tuples/t7012.nim Normal file
View File

@@ -0,0 +1,7 @@
discard """
errormsg: "illegal recursion in type 'Node'"
"""
type Node[T] = tuple
next: ref Node[T]
var n: Node[int]