diff options
author | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 18:51:05 -0500 |
---|---|---|
committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 18:51:05 -0500 |
commit | b966945ab219e58023cdf85c77804519c96c231e (patch) | |
tree | 2833ba5928b0a8240740ab9f535f52caddf31d43 /tests | |
parent | 31860f560e855e3a6269a25f57e4ca7c8a2ef950 (diff) | |
download | Nim-b966945ab219e58023cdf85c77804519c96c231e.tar.gz |
Move
Diffstat (limited to 'tests')
-rw-r--r-- | tests/destructor/t6434.nim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/destructor/t6434.nim b/tests/destructor/t6434.nim new file mode 100644 index 000000000..1657e90bc --- /dev/null +++ b/tests/destructor/t6434.nim @@ -0,0 +1,19 @@ +discard """ + exitcode: 0 + output: '''assingment +assingment +''' +""" + +type + Foo* = object + boo: int + +proc `=`(dest: var Foo, src: Foo) = + debugEcho "assingment" + +proc test(): auto = + var a,b : Foo + return (a, b) + +var (a, b) = test() \ No newline at end of file |