You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
classC{}classDextendsC{foo1(){}}classEextendsC{foo2(){}}declarevard: D;declarevare: E;// A union type U is assignable to a type T if each type in U is assignable to Td=e;e=d;d=e;e=d;
Error
Property 'foo1' is missing in type 'E' but required in type 'D'.
Property 'foo2' is missing in type 'D' but required in type 'E'.
Type 'E' is not assignable to type 'D'.
Type 'D' is not assignable to type 'E'.
So it means we should report TS2741 only for the first error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I decided to normalize
TS2741asTS2322for alpha because of the following case.https://www.typescriptlang.org/play?#code/MYGwhgzhAEDC0G9oF8BQpIwCLQKYA8AXXAOwBMZ4kAzAe1oEYAKASkRRXXCmgFE8ipCnHZ1aAJlbtknVGVwYATrmgA3MIuhkAXNCwBuOQvDK1GvLt6HUAehvQAgtACuJAJa0S0QgE8ADioAqtBuMJhuAOYkYABGICqEtNBg3v4qACoh1HhgwAAWqQEhXsGhyVCR0XEJSely0AC8eIYqTWTWZI3NqK1ahkA
Error
So it means we should report
TS2741only for the first error.Beta Was this translation helpful? Give feedback.
All reactions