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
const f = <F extends (...args: any[]) => <G>(x: G) => void>(_: F): F => _ const a = f(<K extends string>(_: K) => _ => ({})) /* in 3.8.2 (_: K) => <G>(_: G) => {}; */ /* in 3.7.5 <K extends string>(_: K) => <G>(_: G) => {}; */
Expected behavior: To be like in 3.7.5
Actual behavior: K is lost
Buggy: Playground Link
Working: Playground Link
Note: reproduce on next too
The text was updated successfully, but these errors were encountered:
Interesting enough if you specify the full signature the generic is preserved:
const f = <F extends (...args: any[]) => <G>(x: G) => void>(_: F): F => _ ....... const a = f(<K extends string>(_: K) => <G>(_: G) => ({})) ....... a("ok")
Playground Link
Sorry, something went wrong.
ahejlsberg
Successfully merging a pull request may close this issue.
Expected behavior:
To be like in 3.7.5
Actual behavior:
K is lost
Buggy:
Playground Link
Working:
Playground Link
Note:
reproduce on next too
The text was updated successfully, but these errors were encountered: