Avatar
(edited)
Author icon
t.ae
class X { init(){} deinit { print("deinit") } } do { let x = X() print(x) } let x = X() print(x)
Version:
swift-5.1-RELEASE
Output:
main.X deinit main.X
Error: