summary refs log tree commit diff stats
path: root/tests/tuples/tanontuples.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tuples/tanontuples.nim')
-rw-r--r--tests/tuples/tanontuples.nim26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/tuples/tanontuples.nim b/tests/tuples/tanontuples.nim
deleted file mode 100644
index f514670d3..000000000
--- a/tests/tuples/tanontuples.nim
+++ /dev/null
@@ -1,26 +0,0 @@
-discard """
-  output: '''61, 125
-(Field0: 0) (Field0: 13)'''
-"""
-
-import macros
-
-proc `^` (a, b: int): int =
-  result = 1
-  for i in 1..b: result = result * a
-
-var m = (0, 5)
-var n = (56, 3)
-
-m = (n[0] + m[1], m[1] ^ n[1])
-
-echo m[0], ", ", m[1]
-
-# also test we can produce unary anon tuples in a macro:
-macro mm(): untyped =
-  result = newTree(nnkTupleConstr, newLit(13))
-
-proc nowTuple(): (int,) =
-  result = (0,)
-
-echo nowTuple(), " ", mm()