Skip to content

Add used-before-declaration errors for class refs inside computed names #23784

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

Merged
merged 1 commit into from
Apr 30, 2018

Conversation

weswigham
Copy link
Member

Fixes #23737
Fixes #23736

As pointed out in #23737, a class has not yet been constructed during the evaluation of its computed property names, so referencing it within them should be an error.

@weswigham weswigham requested review from rbuckton and mhegazy April 30, 2018 19:23
@weswigham weswigham merged commit 0c244d8 into microsoft:master Apr 30, 2018
@weswigham weswigham deleted the clase-computed-name-tdz branch April 30, 2018 19:55
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants