swc/crates/swc_bundler/tests/fixture/issue-1156-1/output/entry.inlined.ts

23 lines
358 B
TypeScript
Raw Normal View History

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