trectuples.nim 238 B

123456789101112131415
  1. discard """
  2. errormsg: "illegal recursion in type 'Node'"
  3. line: 6
  4. """
  5. type Node = tuple[left: ref Node]
  6. proc traverse(root: ref Node) =
  7. if root.left != nil: traverse(root.left)
  8. type A = tuple[B: ptr A]
  9. proc C(D: ptr A) = C(D.B)