Skip to content
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

Missing implicit-any error on computed property in destructuring #20566

Closed
mattmccutchen opened this issue Dec 8, 2017 · 2 comments
Closed
Labels
Duplicate An existing issue was already created

Comments

@mattmccutchen
Copy link
Contributor

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.

Actual behavior:
x has type any and can be passed to foo without error.

@ghost ghost added the Bug A bug in TypeScript label Dec 8, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Jan 11, 2018

seems related to #20725

@mhegazy mhegazy added this to the TypeScript 2.8 milestone Jan 11, 2018
@mattmccutchen
Copy link
Contributor Author

Duplicate of #20725

@mhegazy mhegazy added Duplicate An existing issue was already created and removed Bug A bug in TypeScript labels Jan 20, 2018
@mhegazy mhegazy removed this from the TypeScript 2.8 milestone Jan 20, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants