t7346.nim 274 B

12345678910111213141516
  1. discard """
  2. joinable: false
  3. """
  4. when not defined(nimNewRuntime):
  5. {.error: "This bug could only be reproduced with --newruntime".}
  6. type
  7. Obj = object
  8. a: int
  9. proc `=`(a: var Obj, b: Obj) = discard
  10. let a: seq[Obj] = @[] # bug #7346
  11. let b = newSeq[Obj]() # bug #7345