Avatar
omochimetaru 10/6/2018 7:17 PM
@swift-4.2.4 var f: (() -> Void)? class Cat { deinit { f?() } } func main() { let cat = Cat() f = { [weak cat] in print(cat == nil) // true } } main() (edited)