Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. protocol P {}
  2. protocol Q {}
  3.  
  4. extension P {
  5. func foo() {}
  6. }
  7.  
  8. extension Q {
  9. func bar() {}
  10. }
  11.  
  12. 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