mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The original bug here about not serializing base protocol conformances is unlikely to return, but I think this still captures the spirit of the original test: rely on a base protocol conformance without the model type ever referring to it. rdar://problem/25125727
16 lines
317 B
Swift
16 lines
317 B
Swift
public protocol SimpleProto {
|
|
func successor() -> Self
|
|
}
|
|
|
|
public protocol ComplexProto : SimpleProto {
|
|
func predecessor() -> Self
|
|
}
|
|
|
|
public protocol ProtoUser {
|
|
associatedtype Element
|
|
associatedtype Impl: SimpleProto
|
|
var start: Impl { get }
|
|
var end: Impl { get }
|
|
subscript(_: Impl) -> Element { get }
|
|
}
|