Sobes.tech
Junior — Senior

What text will appear in the console

livecode

Task condition

Determine what result will be printed to the console after executing the given Swift code.

class Object {
    let value = "value"
    
    deinit {
        print("object deinitialized")
    }
}

var obj: Object? = Object()
let list = [obj]
obj = nil
print(list[0]?.value)