Skip to content

Instantly share code, notes, and snippets.

@griotspeak
Created June 25, 2015 00:11
Show Gist options
  • Save griotspeak/194b3c0d8341d7bb450e to your computer and use it in GitHub Desktop.
Save griotspeak/194b3c0d8341d7bb450e to your computer and use it in GitHub Desktop.
"Ambiguous implied conformance" error
public struct MyValue : Comparable {
let value: Int
}
public func ==(first:MyValue, second:MyValue) -> Bool {
return true
}
public func <(first:MyValue, second:MyValue) -> Bool {
return true
}
extension MyValue : Hashable {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment