Skip to content

Array and Object Binding Patterns are not supported in parenthesized arrow functions. #2678

@rbuckton

Description

@rbuckton

Current, we do not parse binding patterns in an arrow function:

let a = ([{ nested }]) => { }; // error TS1005: ';' expected.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptES6Relates to the ES6 SpecFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions