summaryrefslogtreecommitdiff
path: root/tests/specs/run/error_002/mod1.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/error_002/mod1.ts')
-rw-r--r--tests/specs/run/error_002/mod1.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/specs/run/error_002/mod1.ts b/tests/specs/run/error_002/mod1.ts
new file mode 100644
index 000000000..5e58f432e
--- /dev/null
+++ b/tests/specs/run/error_002/mod1.ts
@@ -0,0 +1,17 @@
+import { printHello2, returnsFoo } from "./subdir2/mod2.ts";
+
+export function returnsHi(): string {
+ return "Hi";
+}
+
+export function returnsFoo2(): string {
+ return returnsFoo();
+}
+
+export function printHello3() {
+ printHello2();
+}
+
+export function throwsError() {
+ throw Error("exception from mod1");
+}