Related error spans for derived members in interfaces/classes #25033
Labels
Domain: Related Error Spans
Specifying regions for error messages/diagnostics on multiple locations.
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message.
Currently, we provide certain errors for when a derived type incorrectly overrides/implements a member from the base type:
We can actually provide the base type's member as a related span location for some extra context.
Where
0
is the derived type1
is the member nameand this gets reported on the base type member.
The text was updated successfully, but these errors were encountered: