Sobes.tech
Senior

protocol SomeProtocol { func test() } func test1_1(valor: SomeProtocol) {} func test1_2(valor: any SomeProtocol) {} func test2_1(valor: some SomeProtocol) {} func test2_2<Valoare: SomeProtocol>(valor: Valoare) {} class A { func test2_2<Valoare: SomeProtocol>(valor: Valoare) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(valor: B())