Sobes.tech
Senior

протокол SomeProtocol { func test() } func test1_1(қиммат: SomeProtocol) {} func test1_2(қиммат: any SomeProtocol) {} func test2_1(қиммат: some SomeProtocol) {} func test2_2<Қиммат: SomeProtocol>(қиммат: Қиммат) {} class A { func test2_2<Қиммат: SomeProtocol>(қиммат: Қиммат) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(қиммат: B())