Last active
July 7, 2018 19:00
-
-
Save xcadaverx/9537e28284aff9f078135cdbc3250d02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Foo { | |
func bar() | |
} | |
extension Foo { | |
func bar() { | |
print("Foo.bar()") | |
} | |
} | |
class SomeFoo: Foo {} | |
let someFoo = SomeFoo() | |
someFoo.bar() // Foo.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment