-
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
}
class B extends Object {
static readonly p1 = Symbol();
static readonly p2 = Symbol();
[B.p1]() {}
[B.p2] = 0
}
Expected behavior:
pass
Actual behavior:
$ node built/local/tsc.js index.ts -t es6
index.ts:7:7 - error TS2506: 'B' is referenced directly or indirectly in its own base expression.
7 class B extends Object {
~
Playground Link:
Related Issues: #23736
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