
პროტოკოლი SomeProtocol {
func test()
}
func test1_1(მნიშვნელობა: SomeProtocol) {}
func test1_2(მნიშვნელობა: any SomeProtocol) {}
func test2_1(მნიშვნელობა: some SomeProtocol) {}
func test2_2<მნიშვნელობა: SomeProtocol>(მნიშვნელობა: მნიშვნელობა) {}
class A {
func test2_2<მნიშვნელობა: SomeProtocol>(მნიშვნელობა: მნიშვნელობა) {
}
}
class B: SomeProtocol {
func test() {}
}
class C: B {}
A().test2_2(მნიშვნელობა: B())