Avatar
omochimetaru 3/25/2019 3:33 AM
@swift-4.2.4 @swift-5.0.3 protocol ProtoA {} protocol ProtoB { associatedtype T : ProtoA var stuff: Int { get } } extension ProtoB { var stuff: Int { return 0 } } class Foo<X: ProtoA> : ProtoB { typealias T = X }