Add related error spans for use-before-declaration #25003
Labels
Bug
A bug in TypeScript
Domain: Related Error Spans
Specifying regions for error messages/diagnostics on multiple locations.
Fixed
A PR has been merged for this issue
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 using certain declarations before they're actually declared:
We can actually provide the definition location as a related span for some extra context.
The text was updated successfully, but these errors were encountered: