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
Inference, tuple, generic, callback, higher-order function
v4.3.2 and below (tested down to v3.3.3)
Playground link with relevant code
declare function a(): [ <T>(arg: T) => T ] declare function b<T, U>(a1: T, a2: [(a: T) => U]): U b(1, [a()[0]]) // returns number, as expected b(1, a()) // returns unknown (expected a number)
The text was updated successfully, but these errors were encountered:
Looks like there's an incorrect inference priority being assigned here
Sorry, something went wrong.
No branches or pull requests
Bug Report
π Search Terms
Inference, tuple, generic, callback, higher-order function
π Version & Regression Information
v4.3.2 and below (tested down to v3.3.3)
β― Playground Link
Playground link with relevant code
π» Code
The text was updated successfully, but these errors were encountered: