summaryrefslogtreecommitdiff
path: root/cli/tests/error_001.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/error_001.ts')
-rw-r--r--cli/tests/error_001.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/error_001.ts b/cli/tests/error_001.ts
new file mode 100644
index 000000000..f06f80cb4
--- /dev/null
+++ b/cli/tests/error_001.ts
@@ -0,0 +1,9 @@
+function foo(): never {
+ throw Error("bad");
+}
+
+function bar(): void {
+ foo();
+}
+
+bar();