3
Protokół nie jest zgodny z samym sobą?
Dlaczego ten kod Swift nie kompiluje się? protocol P { } struct S: P { } let arr:[P] = [ S() ] extension Array where Element : P { func test<T>() -> [T] { return [] } } let result : [S] = arr.test() Kompilator mówi: „Typ Pnie jest zgodny …