Avatar
@swift-6.0.3 class C { var talk: (Bool) -> Void = { _ in print("property") } func talk(_: Bool) { print("function at C") } } class C2: C { override func talk(_: Bool) { print("function at C2") } } let aa: C = C2() aa.talk(true) C.talk(aa)(true) type(of: aa).talk(aa)(true)