summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tuples/tfortupleunpack.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tuples/tfortupleunpack.nim b/tests/tuples/tfortupleunpack.nim
index 56cf30ebc..9aeb7c5d6 100644
--- a/tests/tuples/tfortupleunpack.nim
+++ b/tests/tuples/tfortupleunpack.nim
@@ -8,6 +8,7 @@ output: '''
 113283
 @[(88, 99, 11), (88, 99, 11)]
 @[(7, 6, -28), (7, 6, -28)]
+12
 '''
 """
 
@@ -36,4 +37,7 @@ for i, (a, b, c) in x.mpairs:
   c = -28
 echo x
 
-
+proc test[n]() =
+  for (a,b) in @[(1,2)]:
+    echo a,b
+test[string]()