mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
504 B
TypeScript
30 lines
504 B
TypeScript
//// [tests/cases/conformance/dynamicImport/importCallExpression3ES2020.ts] ////
|
|
|
|
//// [0.ts]
|
|
export class B {
|
|
print() { return "I am B"}
|
|
}
|
|
|
|
//// [2.ts]
|
|
async function foo() {
|
|
class C extends (await import("./0")).B {}
|
|
var c = new C();
|
|
c.print();
|
|
}
|
|
foo();
|
|
|
|
|
|
//// [0.js]
|
|
export class B {
|
|
print() { return "I am B"; }
|
|
}
|
|
//// [2.js]
|
|
"use strict";
|
|
async function foo() {
|
|
class C extends (await import("./0")).B {
|
|
}
|
|
var c = new C();
|
|
c.print();
|
|
}
|
|
foo();
|