We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: nightly
Code
declare function p(x: 'hello'): 'hello'; declare function g<T extends string>(x: T): T; declare function h(f: (x: number) => number): number; declare function f<T extends number>(f: (x: T) => T): T; h(p); // Error as expected h(g); // Uncaught error f(g); // Uncaught error
Expected behavior: All of the above invokations should be errors.
The text was updated successfully, but these errors were encountered:
might be related: #13039 (comment)
Sorry, something went wrong.
@Aleksey-Bykov Thanks. Yes, it is a duplicate of #3410. I'll still leave it open to see if the attitude towards this problem has changed.
i am with you let the duplicates rain!
I've changed my mind, closing 😄
No branches or pull requests
TypeScript Version: nightly
Code
Expected behavior:
All of the above invokations should be errors.
The text was updated successfully, but these errors were encountered: