Skip to content

Instantly share code, notes, and snippets.

@irace
Created May 11, 2016 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irace/423c8f8c2a8a05e8d87b6155d25d1eec to your computer and use it in GitHub Desktop.
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
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