summary refs log tree commit diff stats
path: root/tests/tuples/t7012.nim
blob: 32d441ddddf34aa3066dfa07194ff383675a58b6 (plain) (blame)
1
2
3
4
5
6
7
discard """
  errormsg: "illegal recursion in type 'Node'"
"""

type Node[T] = tuple
    next: ref Node[T]
var n: Node[int]