Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol P {}
- protocol Q {}
- extension P {
- func foo() {}
- }
- extension Q {
- func bar() {}
- }
- struct S: P, Q {} // foo() and bar() can both be called on an instance of S
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement