summary refs log tree commit diff stats
path: root/tests/destructor/t7346.nim
blob: 3834d39fffd6ff7a77e49662c699999f3413777a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
joinable: false
"""

# This bug could only be reproduced with --newruntime

type
  Obj = object
    a: int

proc `=`(a: var Obj, b: Obj) = discard

let a: seq[Obj] = @[] # bug #7346
let b = newSeq[Obj]() # bug #7345