mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 22:43:34 +00:00
16 lines
274 B
Nim
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
|