Skip to content

Commit f939ff2

Browse files
Fixed unreachable code in tests.
1 parent bb232f7 commit f939ff2

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf01.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ function f(foo: T) {
1212
else {
1313
return (foo as S[])[0];
1414
}
15-
16-
throw new Error("Unreachable code hit.");
1715
}

tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf02.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ function f(foo: T) {
1313
else {
1414
return foo[0];
1515
}
16-
17-
throw new Error("Unreachable code hit.");
1816
}

0 commit comments

Comments
 (0)