summary refs log tree commit diff stats
path: root/tests/destructor/t6434.nim
blob: 1657e90bc9b1018b7a3dfb60071748e7d3cad2d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()