Environment
Xcode 10 GM
Additional Detail from JIRA
|
|
| Votes |
0 |
| Component/s |
Xcode Playground Support |
| Labels |
Bug |
| Assignee |
None |
| Priority |
Medium |
md5: ca7b422a0aafdb7e1527b0c4b35306bd
Issue Description:
Playgroud does proceed with deallocation of objects when expected in Xcode 10 GM.
class Ref {
weak var obj: Obj?
}
class Obj {
deinit {
print("deinit")
}
}
var obj: Obj? = Obj() // Never deallocates in Xcode 10 Playground
let ref = Ref()
ref.obj = obj
obj = nil
Discussion in the forums:
https://forums.swift.org/t/is-this-a-swift-4-2-regression-object-not-deallocating/16136