Avatar
swiftbot BOT 1/30/2020 5:59 AM
Author icon
t.ae
class Test { var value: Int init(_ value: Int) { self.value = value } deinit { print("deinit") } } do { var x: Test = Test(0) { didSet { print("did set \(x)") } } x = Test(1) print("exit do") } print("End")
Version:
swift-5.1.3-RELEASE
Output:
did set main.Test deinit exit do deinit End
Error: