15 lines
274 B
Nim
15 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
|