mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
11 lines
222 B
TypeScript
11 lines
222 B
TypeScript
// @target: es2015
|
|
const array = [];
|
|
for (let i = 0; i < 10; ++i) {
|
|
array.push(class C {
|
|
#myField = "hello";
|
|
#method() {}
|
|
get #accessor() { return 42; }
|
|
set #accessor(val) { }
|
|
});
|
|
}
|