diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf01.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf01.ts index 093824acf0d..f13ce35e829 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf01.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf01.ts @@ -12,6 +12,4 @@ function f(foo: T) { else { return (foo as S[])[0]; } - - throw new Error("Unreachable code hit."); } \ No newline at end of file diff --git a/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf02.ts b/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf02.ts index 53d625f7200..4eaf18ca7cc 100644 --- a/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf02.ts +++ b/tests/cases/conformance/types/stringLiteral/stringLiteralCheckedInIf02.ts @@ -13,6 +13,4 @@ function f(foo: T) { else { return foo[0]; } - - throw new Error("Unreachable code hit."); } \ No newline at end of file