Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol MyProtocol {
- static func foo() -> Self
- static func bar()
- static func baz()
- }
- extension MyProtocol {
- static func foo() -> Self {
- return Self()
- }
- static func bar() {
- print("Something")
- }
- static func baz() {
- Self.bar()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement