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)
Version:
swift-5.1-RELEASE
Output:
Error:
/usercode/main.swift:14:13: error: type 'X' has no member 'f' let _: X = .f(x) ~^~~~