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