Created
July 7, 2018 19:01
-
-
Save xcadaverx/158eaf40d83c8b4abe3d66a958cf5aa5 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
extension Foo where Self: SomeFoo { | |
func bar() { | |
print("Foo.SomeFoo.bar()") | |
} | |
} | |
let someFoo: SomeFoo = SomeFoo() | |
someFoo.bar() // Foo.SomeFoo.bar() | |
let anotherFoo: Foo = SomeFoo() | |
anotherFoo.bar() // Foo.SomeFoo.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment