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

11 lines
246 B
TypeScript

// @target: es2015
class Test {
#y = 123;
static something(obj: { [key: string]: Test }) {
obj[(new class { #x = 1; readonly s = "prop"; }).s].#y = 1;
obj[(new class { #x = 1; readonly s = "prop"; }).s].#y += 1;
}
}