Sobes.tech
Senior

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