Sobes.tech
Senior

Protokoll SomeProtocol {} func test1_1(wert: SomeProtocol) {} func test1_2(wert: any SomeProtocol) {} func test2_1(wert: some SomeProtocol) {} func test2_2<Wert: SomeProtocol>(wert: Wert) {} Klasse A { func test2_2<Wert: SomeProtocol>(wert: Wert) { } } Klasse B: SomeProtocol { } A().test2_2(wert: B())