Give more detail about original definition when override is incompatible #6808
Labels
priority-1-normal
topic-error-reporting
How we report errors
topic-inheritance
Inheritance and incompatible overrides
topic-usability
If a method override is incompatible with the definition in a base class, it would be helpful to give the file + line number of the base class definition. Maybe we should also print out the signature of the original definition if we can't pinpoint the error to an incompatible argument/return type (that is, when we give the generic
Signature of "x" incompatible with supertype "A"
error).Follow-up to #5025.
The text was updated successfully, but these errors were encountered: