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
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.
The text was updated successfully, but these errors were encountered:
This is for 1.0, not alpha nor 0.1
Discussed in #767
Originally posted by kdy1 February 28, 2023
I decided to normalize
TS2741
asTS2322
for alpha because of the following case.https://www.typescriptlang.org/play?#code/MYGwhgzhAEDC0G9oF8BQpIwCLQKYA8AXXAOwBMZ4kAzAe1oEYAKASkRRXXCmgFE8ipCnHZ1aAJlbtknVGVwYATrmgA3MIuhkAXNCwBuOQvDK1GvLt6HUAehvQAgtACuJAJa0S0QgE8ADioAqtBuMJhuAOYkYABGICqEtNBg3v4qACoh1HhgwAAWqQEhXsGhyVCR0XEJSely0AC8eIYqTWTWZI3NqK1ahkA
Error
So it means we should report
TS2741
only for the first error.The text was updated successfully, but these errors were encountered: