-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsound type constraints #8459
Comments
The example you gave was a bit too complicated for me to understand but I just wanted to mention that assignments of generic functions are not currently type-checked, in general. Perhaps until the implicit cast of generic function type parameters and return type to (There's no current error here) declare let f1: <T>(x: T) => T;
declare let f2: (x: number) => void;
f1 = f2; // Possible error/warning: "generic function types are not
// currently type-checked during assignments" I feel it would be a bit inappropriate to transfer the responsibility to the volunteers who maintain Edit: corrected "declaration of generic functions" to "assignments of generic functions" and updated the example. |
I've updated my comment based on this comment in #3410:
And this one:
|
bump |
I believe this is the same root cause as #8397 ? |
tracked by #5616 |
The text was updated successfully, but these errors were encountered: