mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
064bcf4854
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
29 lines
427 B
TypeScript
29 lines
427 B
TypeScript
function a() {
|
|
console.log("a");
|
|
}
|
|
var O;
|
|
(function(O) {
|
|
O[O["A"] = 0] = "A";
|
|
O[O["B"] = 1] = "B";
|
|
O[O["C"] = 2] = "C";
|
|
})(O || (O = {}));
|
|
export { O as O };
|
|
class A {
|
|
#a;
|
|
#c;
|
|
constructor(o = {}){
|
|
const { a: a1 = a, c } = o;
|
|
this.#a = a1;
|
|
this.#c = c;
|
|
}
|
|
a() {
|
|
this.#a();
|
|
}
|
|
c() {
|
|
console.log(this.#c);
|
|
}
|
|
}
|
|
let a1 = new A();
|
|
a1.a();
|
|
a1.c();
|