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
Expected behavior:
The function a (p :B) => {} should be a valid C because B extends A Actual behavior:
Build fails with the following error
error TS2322: Type '(p: B) => void' is not assignable to type 'C'.
Types of parameters 'p' and 'p' are incompatible.
Type 'S' is not assignable to type 'B'.
Type 'A' is not assignable to type 'B'.
Property 'prop' is missing in type 'A'.
This used to work in 2.3.4.
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.4.1
Code
Expected behavior:
The function a
(p :B) => {}
should be a validC
becauseB
extendsA
Actual behavior:
Build fails with the following error
This used to work in
2.3.4
.The text was updated successfully, but these errors were encountered: