destructor for seq[T]
elements not called with gc:refc upon setLen 0
#17186
Labels
seq[T]
elements not called with gc:refc upon setLen 0
#17186
destructor not called for elements in a seq after a shrink via for example
setLen 0
Example
Current Output
("dtor", 1)
("dtor", 2)
ok2
ok3
ok4
ok5
Expected Output
should output same as with gc:arc
("dtor", 1)
("dtor", 2)
ok2
ok3
("dtor", 12)
("dtor", 11)
ok4
ok5
Additional Information
The text was updated successfully, but these errors were encountered: