Sobes.tech
Senior

protokoll SomeProtocol {} func test1_1(ülesanne: SomeProtocol) {} func test1_2(ükski: SomeProtocol) {} func test2_1(ülesanne: some SomeProtocol) {} func test2_2<Ülesanne: SomeProtocol>(ülesanne: Ülesanne) {} klass A { func test2_2<Ülesanne: SomeProtocol>(ülesanne: Ülesanne) { } } klass B: SomeProtocol { } A().test2_2(ülesanne: B())