mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
345 B
TypeScript
20 lines
345 B
TypeScript
//// [tests/cases/conformance/importDefer/importDeferInvalidDefault.ts] ////
|
|
|
|
//// [a.ts]
|
|
export default function foo() {
|
|
console.log("foo from a");
|
|
}
|
|
|
|
//// [b.ts]
|
|
import defer foo from "./a";
|
|
|
|
foo();
|
|
|
|
//// [a.js]
|
|
export default function foo() {
|
|
console.log("foo from a");
|
|
}
|
|
//// [b.js]
|
|
import defer foo from "./a";
|
|
foo();
|