Skip to content

Instantly share code, notes, and snippets.

@nickffox
Created September 16, 2016 18:46
Show Gist options
  • Save nickffox/bd1cbf9b6185505e14fb7360f6dc3ade to your computer and use it in GitHub Desktop.
Save nickffox/bd1cbf9b6185505e14fb7360f6dc3ade to your computer and use it in GitHub Desktop.
protocol Incomparable: Comparable {}
func ==<T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
func !=<T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
func ><T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
func >=<T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
func <<T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
func <=<T: Incomparable>(lhs: T, rhs: T) -> Bool {
fatalError()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment