t7346.nim 228 B

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