Created
May 11, 2016 14:24
-
-
Save irace/423c8f8c2a8a05e8d87b6155d25d1eec to your computer and use it in GitHub Desktop.
Works in a playground, does not work in a project file as of Xcode 7.3.1
This file contains hidden or 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 { | |
} | |
extension Foo { | |
func bar() -> Self { return self } | |
} | |
extension NSObject: Foo {} | |
let view = UIView().bar() // Value of type `UIView` has no member `bar` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment