From 71ce2ddf838824dec9ca2d59490f69671cda5143 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Fri, 14 Sep 2018 13:12:04 -0500 Subject: [PATCH 1/3] Test case for #6434 --- tests/overload/t6434.nim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/overload/t6434.nim diff --git a/tests/overload/t6434.nim b/tests/overload/t6434.nim new file mode 100644 index 0000000000..1657e90bc9 --- /dev/null +++ b/tests/overload/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 From b966945ab219e58023cdf85c77804519c96c231e Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Fri, 14 Sep 2018 18:51:05 -0500 Subject: [PATCH 2/3] Move --- tests/destructor/t6434.nim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/destructor/t6434.nim diff --git a/tests/destructor/t6434.nim b/tests/destructor/t6434.nim new file mode 100644 index 0000000000..1657e90bc9 --- /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 From 9b4305c359ecdda3c7d0e13a320db76f9a2c7629 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sun, 16 Sep 2018 05:44:37 -0500 Subject: [PATCH 3/3] Remove duplicate --- tests/overload/t6434.nim | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 tests/overload/t6434.nim diff --git a/tests/overload/t6434.nim b/tests/overload/t6434.nim deleted file mode 100644 index 1657e90bc9..0000000000 --- a/tests/overload/t6434.nim +++ /dev/null @@ -1,19 +0,0 @@ -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