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

when not defined(nimNewRuntime):
  {.error: "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