protocol P {
static func foo()
}
extension P {
static func bar() {}
}
P.self.bar() // error: Static member 'bar' cannot be used on protocol metatype 'P.Protocol'
P.self.foo() // error: Static member 'foo' cannot be used on protocol metatype 'P.Protocol'
The message says the these methods are not allowed to be used directly, but it does not say that the protocol metatype itself does not have these methods. So where is the truth?
cc @Joe_Groff