Skip to content

Fix declaration emit for negative number properties, allow negative numbers as computed type property names#32117

Merged
andrewbranch merged 3 commits into
microsoft:masterfrom
andrewbranch:bug/31460
Jul 1, 2019
Merged

Fix declaration emit for negative number properties, allow negative numbers as computed type property names#32117
andrewbranch merged 3 commits into
microsoft:masterfrom
andrewbranch:bug/31460

Conversation

@andrewbranch
Copy link
Copy Markdown
Member

@andrewbranch andrewbranch commented Jun 26, 2019

Fixes #31460 and fixes #31461

Probably worth mentioning that because of how the binder consumes hasDynamicName, this means you can now get completions for “computed” property names that are just +/- a numeric literal:

completions-negative

@andrewbranch andrewbranch merged commit 23f1d5c into microsoft:master Jul 1, 2019
@andrewbranch andrewbranch deleted the bug/31460 branch July 1, 2019 17:57
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

Negative numbers are not treated like type literals Erroneous output when using negative numbers as properties' computed keys

2 participants