mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
11 lines
246 B
TypeScript
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;
|
|
}
|
|
}
|
|
|