Avatar
Author icon
t.ae
struct X {} struct Y { static func f(_ x: X) -> X { print("Y") return x } } let x = X() let _: X = .f(x)
Version:
swift-5.1-RELEASE
Output:
Error:
/usercode/main.swift:11:13: error: type 'X' has no member 'f' let _: X = .f(x) ~^~~~