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: current master (5e5b770)
Code
// Compile with --noImplicitAny function getSomePropertyName() { return "a"; } function foo(s: string) {} let {[getSomePropertyName()]: x} = {a: 4, b: 5}; foo(x);
Expected behavior: Implicit-any error on x.
x
Actual behavior: x has type any and can be passed to foo without error.
any
foo
The text was updated successfully, but these errors were encountered:
seems related to #20725
Sorry, something went wrong.
Duplicate of #20725
No branches or pull requests
TypeScript Version: current master (5e5b770)
Code
Expected behavior:
Implicit-any error on
x
.Actual behavior:
x
has typeany
and can be passed tofoo
without error.The text was updated successfully, but these errors were encountered: