Skip to content

Related error spans for assignability checks #25030

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message.

Currently we have the following error for assignability checks:

Type '{0}' is not assignable to type '{1}'.
Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.

@weswigham had some ideas to iterate on these error messages.

Metadata

Metadata

Assignees

Labels

Domain: Related Error SpansSpecifying regions for error messages/diagnostics on multiple locations.FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions