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())