-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: master
Search Terms:
Code
class A {
static readonly p1 = Symbol();
static readonly p2 = Symbol();
[A.p1]() {}
[A.p2] = 0
}
Expected behavior:
_a = Symbol();
class A {
constructor() {
this[A.p2] = 0;
}
[_a]() { }
}
A.p1 = _a;
A.p2 = Symbol();
var _a;
Actual behavior:
class A {
constructor() {
this[_a] = 0;
}
[A.p1]() { }
}
_a = A.p2;
A.p1 = Symbol();
A.p2 = Symbol();
var _a;
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue