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