Sobes.tech
Senior

protocole SomeProtocol { func test() } func test1_1(valeur: SomeProtocol) {} func test1_2(valeur: any SomeProtocol) {} func test2_1(valeur: some SomeProtocol) {} func test2_2<Val: SomeProtocol>(valeur: Val) {} class A { func test2_2<Val: SomeProtocol>(valeur: Val) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(valeur: B())