-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Domain: API: TransformsRelates to the public transform APIRelates to the public transform APIHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: 2.7.0-dev.201xxxxx
Search Terms:
Code
const p1 = 0;
const p2 = 1;
class A {
[p1] = 0;
[p2]() {}
}Expected behavior:
const p1 = 0;
const p2 = 1;
class A {
constructor() {
this[p1] = 0;
}
[p2]() { }
}Actual behavior:
const p1 = 0;
const p2 = 1;
class A {
constructor() {
this[_a] = 0;
}
[(_a = p1, p2)]() { }
}
var _a;Playground Link:
Related Issues:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Domain: API: TransformsRelates to the public transform APIRelates to the public transform APIHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript