Avatar
swiftbot BOT 9/25/2018 7:29 AM
Author icon
koher
protocol P {} extension P { func foo() -> String { return "P" } } struct S: P { func foo() -> String { return "S" } } let s: S = S() let p: P = s print(s.foo()) print(p.foo())
Version:
swift-4.1.1-RELEASE
Output:
S P
Error: