Test case for #6434

This commit is contained in:
Ganesh Viswanathan
2018-09-14 13:12:04 -05:00
parent 7af659cf59
commit 71ce2ddf83

19
tests/overload/t6434.nim Normal file
View File

@@ -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()