swc/crates/swc_bundler/tests/fixture/issue-1150/output/entry.inlined.ts
David Sherret 064bcf4854
fix(es/codegen): Remove extra spaces in AssignPatProp and KeyValuePatProp (#7488)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2023-06-07 05:08:35 +00:00

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();