Skip to content

Uncaught implicit any for computed property in destructure #26379

@ghost

Description

TypeScript Version: 3.1.0-dev.20180810

Code

let x: boolean;
({ ["a" + "b"]: x } = 0);
x = 0["a" + "b"];

Expected behavior:

Error on both lines.

Actual behavior:

Error only on 0["a" + "b"].

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions