close #7012 add testcase (#17537)

This commit is contained in:
flywind 2021-03-28 01:12:11 +08:00 • committed by GitHub
commit 9c52009de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]