mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
27 lines
446 B
TypeScript
27 lines
446 B
TypeScript
// @target: esnext
|
|
// @allowJS: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
|
|
// @filename: file.js
|
|
export class C {
|
|
#hello = "hello";
|
|
#world = 100;
|
|
|
|
#calcHello() {
|
|
return this.#hello;
|
|
}
|
|
|
|
get #screamingHello() {
|
|
return this.#hello.toUpperCase();
|
|
}
|
|
/** @param value {string} */
|
|
set #screamingHello(value) {
|
|
throw "NO";
|
|
}
|
|
|
|
getWorld() {
|
|
return this.#world;
|
|
}
|
|
}
|