mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
9dfebbc949
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
17 lines
287 B
TypeScript
17 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");
|
|
}
|
|
})();
|