mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 09:31:38 +00:00
added another test case
This commit is contained in:
10
tests/accept/compile/trectuples.nim
Normal file
10
tests/accept/compile/trectuples.nim
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
type Node = tuple[left: ref Node]
|
||||
|
||||
proc traverse(root: ref Node) =
|
||||
if root.left != nil: traverse(root.left)
|
||||
|
||||
type A = tuple[B: ptr A]
|
||||
proc C(D: ptr A) = C(D.B)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user