mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
167 B
Swift
14 lines
167 B
Swift
|
|
public struct Y {}
|
|
|
|
public protocol P {
|
|
func doSomething() -> Y
|
|
}
|
|
|
|
public struct X : P {
|
|
public func doSomething() -> Y {
|
|
return Y()
|
|
}
|
|
public init() {}
|
|
}
|