swc/crates/swc_ecma_parser/tests/tsc/privateNameCircularReference.ts

9 lines
165 B
TypeScript

// @strict: true
// @target: es6
class A {
#foo = this.#bar;
#bar = this.#foo;
["#baz"] = this["#baz"]; // Error (should *not* be private name error)
}