Member-wise checks give incorrect errors for type assertions #55167
Labels
In Discussion
Not yet reached consensus
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Suggestion
An idea for TypeScript
Milestone
Playground Link
Expected: Both of these type assertions should consistently apply the appropriate relationship check, and both should be free of errors.
Actual: The first assertion is free of errors, while the second has an excess property error.
Similar example I found over at https://github.com/microsoft/TypeScript/pull/55152/files#r1275497478:
The text was updated successfully, but these errors were encountered: