Files
Nim/tests/destructor/t7346.nim
2019-03-05 08:17:30 +01:00

16 lines
274 B
Nim

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