Avatar
Author icon
t.ae
func f(_ x: X) -> X { print("top-level") return x } struct X { static func f(_ x: X) -> X { print("static") return x } } let x = X() let _: X = .f(x) // static
Version:
swift-5.1-RELEASE
Output:
static
Error: