Sobes.tech
Senior

protokoll SomeProtocol { func test() } func test1_1(ülesanne: SomeProtocol) {} func test1_2(ülesanne: any SomeProtocol) {} func test2_1(ülesanne: some SomeProtocol) {} func test2_2<Ülesanne: SomeProtocol>(ülesanne: Ülesanne) {} class A { func test2_2<Ülesanne: SomeProtocol>(ülesanne: Ülesanne) { } } class B: SomeProtocol { func test() {} } class C: B {} A().test2_2(ülesanne: B())