swc/crates/swc_bundler/tests/fixture/issue-1156-1/output/entry.inlined.ts
2021-11-09 20:42:49 +09:00

23 lines
358 B
TypeScript

function d() {
let methods;
const promise = new Promise((resolve, reject)=>{
methods = {
resolve,
reject
};
});
return Object.assign(promise, methods);
}
class A {
a() {
this.s.resolve();
}
b() {
this.s = d();
}
constructor(){
this.s = d();
}
}
new A();