Created
July 7, 2018 19:07
-
-
Save xcadaverx/517c5f4060dc8f887d15facdf4376fd9 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 {} | |
let fooSubclassOne: Foo = FooSubClass() | |
fooSubclassOne.bar() // Foo.bar() | |
let fooSubclassTwo: SomeFoo = FooSubClass() | |
fooSubclassTwo.bar() // FooSubClass.bar() | |
let fooSubClassThree: FooSubClass = FooSubClass() | |
fooSubClassThree.bar() // FooSubClass.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment