1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/tests/014_duplicate_import.ts

10 lines
255 B
TypeScript
Raw Normal View History

2018-08-27 22:32:12 -04:00
// with all the imports of the same module, the module should only be
// instantiated once
import "./subdir/auto_print_hello.ts";
import "./subdir/auto_print_hello.ts";
(async (): Promise<void> => {
2018-08-27 22:32:12 -04:00
await import("./subdir/auto_print_hello.ts");
})();