mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +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;
|
||
|
}
|
||
|
}
|
||
|
|