Avatar
@swift-main class Cat { func nya() -> String { return "nya" } } unowned var a: Cat? = nil print(a?.nya() ?? "nil") var b: Cat? = Cat() a = b print(a?.nya() ?? "nil") b = nil print(a?.nya() ?? "nil") (edited)