diff options
author | Araq <rumpf_a@web.de> | 2011-11-12 01:02:06 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-12 01:02:06 +0100 |
commit | 8fc15ca0d5b46f1ecd3bd46f201f4ede3225be30 (patch) | |
tree | e2a09e7fdd7997dea504dd2a3ffa3dde2cdc3aa0 /tests/accept | |
parent | 2bd14f4ba8863f08eadc99e6664935ab1e3fec20 (diff) | |
download | Nim-8fc15ca0d5b46f1ecd3bd46f201f4ede3225be30.tar.gz |
added another test case
Diffstat (limited to 'tests/accept')
-rw-r--r-- | tests/accept/compile/trectuples.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/accept/compile/trectuples.nim b/tests/accept/compile/trectuples.nim new file mode 100644 index 000000000..c59cfe880 --- /dev/null +++ b/tests/accept/compile/trectuples.nim @@ -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) + + |