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

Spec allows missing initializer in destructuring lexical bindings #6785

Closed
nickie opened this issue Feb 1, 2016 · 2 comments
Closed

Spec allows missing initializer in destructuring lexical bindings #6785

nickie opened this issue Feb 1, 2016 · 2 comments
Assignees
Labels
Spec Issues related to the TypeScript language specification

Comments

@nickie
Copy link

nickie commented Feb 1, 2016

TypeScript's specification seems to allow a missing initializer for destructuring lexical bindings, whereas the EC262 specification does not. Is this intentional? In that case, I believe it should only be allowed in the case that a type annotation is present, e.g., in let [x, y]: number[]; The current playground implementation seems to disallow this.

@nickie nickie changed the title Spec allows missing initializer in destructuring lexical bindings Spec allows missing initializer in destructuring lexical bindings @Spec Feb 1, 2016
@nickie nickie changed the title Spec allows missing initializer in destructuring lexical bindings @Spec Spec allows missing initializer in destructuring lexical bindings Feb 1, 2016
@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Spec Issues related to the TypeScript language specification labels Feb 1, 2016
@RyanCavanaugh
Copy link
Member

The initializer for DestructuringLexicalBinding should not be opt

@mhegazy mhegazy removed the Bug A bug in TypeScript label Feb 20, 2016
@mhegazy mhegazy added this to the TypeScript 2.0 milestone Feb 20, 2016
@mhegazy mhegazy added the Help Wanted You can do this label Feb 20, 2016
@mhegazy mhegazy modified the milestone: TypeScript 2.0 Feb 20, 2016
@DanielRosenwasser DanielRosenwasser removed the Help Wanted You can do this label Mar 9, 2016
@RyanCavanaugh
Copy link
Member

The spec is now an "archived" artifact and we won't be tracking defects against it anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec Issues related to the TypeScript language specification
Projects
None yet
Development

No branches or pull requests

6 participants