diff options
Diffstat (limited to 'tests/tuples/tunpack_asgn.nim')
-rw-r--r-- | tests/tuples/tunpack_asgn.nim | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/tuples/tunpack_asgn.nim b/tests/tuples/tunpack_asgn.nim deleted file mode 100644 index 1dc7ff074..000000000 --- a/tests/tuples/tunpack_asgn.nim +++ /dev/null @@ -1,34 +0,0 @@ -discard """ - output: '''2 4 -4 -2 0''' -""" - -proc foobar(): (int, int) = (2, 4) - -# test within a proc: -proc pp(x: var int) = - var y: int - (y, x) = foobar() - -template pt(x) = - var y: int - (x, y) = foobar() - -# test within a generic: -proc pg[T](x, y: var T) = - pt(x) - -# test as a top level statement: -var x, y, a, b: int -# test for regression: -(x, y) = (1, 2) -(x, y) = fooBar() - -echo x, " ", y - -pp(a) -echo a - -pg(a, b) -echo a, " ", b |