Sobes.tech
Senior

protokolas SomeProtocol { func test() } func test1_1(reikšmė: SomeProtocol) {} func test1_2(reikšmė: any SomeProtocol) {} func test2_1(reikšmė: some SomeProtocol) {} func test2_2<Reikšmė: SomeProtocol>(reikšmė: Reikšmė) {} class A { func test2_2<Reikšmė: SomeProtocol>(reikšmė: Reikšmė) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(reikšmė: B())