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
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.3.4
Code
With the react TS starter pack:
create-react-app.cmd generics-fail --scripts-version=react-scripts-ts
, modify index.tsx as follows:Expected behavior:
No compiler error. The
InferenceFail
instance should be correctly inferred to have actual type parameterData
forT
.Actual behavior:
Compiler error:
T
is inferred to be{}
.The text was updated successfully, but these errors were encountered: