mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
447 B
Plaintext
16 lines
447 B
Plaintext
//// [tests/cases/conformance/dynamicImport/importCallExpressionNestedCJS.ts] ////
|
|
|
|
=== foo.ts ===
|
|
|
|
export default "./foo";
|
|
|
|
=== index.ts ===
|
|
async function foo() {
|
|
>foo : Symbol(foo, Decl(index.ts, 0, 0))
|
|
|
|
return await import((await import("./foo")).default);
|
|
>(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0))
|
|
>"./foo" : Symbol("./foo", Decl(foo.ts, 0, 0))
|
|
>default : Symbol(default, Decl(foo.ts, 0, 0))
|
|
}
|