Merge pull request #8968 from genotrance/test-6434

Test case for #6434
This commit is contained in:
Andreas Rumpf
2018-09-16 21:44:41 +02:00
committed by GitHub

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