Sobes.tech
Senior

protokół SomeProtocol { func test() } func test1_1(wartość: SomeProtocol) {} func test1_2(wartość: any SomeProtocol) {} func test2_1(wartość: some SomeProtocol) {} func test2_2<Wartość: SomeProtocol>(wartość: Wartość) {} class A { func test2_2<Wartość: SomeProtocol>(wartość: Wartość) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(wartość: B())