պրոտոկոլ SomeProtocol {}
ֆունկցիա test1_1(արժեք: SomeProtocol) {}
ֆունկցիա test1_2(համայն SomeProtocol) {}
ֆունկցիա test2_1(արժեք: some SomeProtocol) {}
ֆունկցիա test2_2<Արժեք: SomeProtocol>(արժեք: Արժեք) {}
դաս A {
ֆունկցիա test2_2<Արժեք: SomeProtocol>(արժեք: Արժեք) {
}
}
դաս B: SomeProtocol {
}
A().test2_2(արժեք: B())