mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
17 lines
264 B
TypeScript
17 lines
264 B
TypeScript
// @module: es2020
|
|
// @target: es2020
|
|
// @filename: 0.ts
|
|
export class B {
|
|
print() { return "I am B"}
|
|
}
|
|
|
|
// @filename: 2.ts
|
|
function foo(x: Promise<any>) {
|
|
x.then(value => {
|
|
let b = new value.B();
|
|
b.print();
|
|
})
|
|
}
|
|
|
|
foo(import("./0"));
|