diff options
author | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 13:12:04 -0500 |
---|---|---|
committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-14 13:12:04 -0500 |
commit | 71ce2ddf838824dec9ca2d59490f69671cda5143 (patch) | |
tree | 3d29d17e2753c49610b285eb47ca1a983eb6867d | |
parent | 7af659cf59ce85ea1d928c17475f5174a6ea4e52 (diff) | |
download | Nim-71ce2ddf838824dec9ca2d59490f69671cda5143.tar.gz |
Test case for #6434
-rw-r--r-- | tests/overload/t6434.nim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/overload/t6434.nim b/tests/overload/t6434.nim new file mode 100644 index 000000000..1657e90bc --- /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 |