mirror of
https://github.com/denoland/deno
synced 2024-09-13 05:11:43 +00:00
9dfebbc949
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
18 lines
287 B
TypeScript
18 lines
287 B
TypeScript
(async (): Promise<void> => {
|
|
const {
|
|
returnsHi,
|
|
returnsFoo2,
|
|
printHello3
|
|
} = await import("./subdir/mod1.ts");
|
|
|
|
printHello3();
|
|
|
|
if (returnsHi() !== "Hi") {
|
|
throw Error("Unexpected");
|
|
}
|
|
|
|
if (returnsFoo2() !== "Foo") {
|
|
throw Error("Unexpected");
|
|
}
|
|
})();
|