I just updated to Xcode 11.4. I'm receiving the following error:
Overridden method 'equals' has generic signature <T where T : Gradient> which is incompatible with base method's generic signature <T where T : Fill>; expected generic signature to be <T where T : Fill>
class Fill: Equatable {
func equals<T>(other: T) -> Bool where T: Fill { }
}
func ==<T> (lhs: T, rhs: T) -> Bool where T: Fill {
return lhs.equals(other: rhs)
}
class Gradient: Fill {
override func equals<T>(other: T) -> Bool where T: Gradient { }
}
How this changed?
Please look at this thread https://forums.swift.org/t/method-override-with-a-generic-signature-with-requirements-not-imposed-by-the-base-method/33593
This compilation error prevents you from future crashes.