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