Move
This commit is contained in:
parent
31860f560e
commit
b966945ab2
1 changed files with 19 additions and 0 deletions
19
tests/destructor/t6434.nim
Normal file
19
tests/destructor/t6434.nim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue