Nim/tests/typerel/trectuple.nim
2014-10-04 14:23:17 +02:00

15 lines
229 B
Nim

discard """
errormsg: "illegal recursion in type 'TNode'"
line: 8
"""
type
PNode = ref TNode
TNode = tuple # comment
self: PNode # comment
a, b: int # comment
var node: PNode
new(node)
node.self = node