Skip to content

Instantly share code, notes, and snippets.

@Ben-G
Created June 18, 2015 15:53
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 Ben-G/4a7eeb0588d2b636f422 to your computer and use it in GitHub Desktop.
Save Ben-G/4a7eeb0588d2b636f422 to your computer and use it in GitHub Desktop.
//: Playground - noun: a place where people can play
/*
Compiler Error:
candidate exactly matches
func doSomething() {
^
*/
struct A:B,C {
}
protocol B {
func doSomething()
}
protocol C {
func doSomething()
}
extension B {
func doSomething() {
}
}
extension C {
func doSomething() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment