Files
swift-mirror/test/Serialization/Inputs/inherited-conformance-lib.swift
Jordan Rose fab076e2d4 [test] Don't depend on stdlib protocols in inherited-conformance.swift.
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
2016-04-18 15:44:45 -07:00

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 }
}