mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
Accepted baselines.
This commit is contained in:
@@ -13,8 +13,6 @@ function f(foo: T) {
|
||||
else {
|
||||
return (foo as S[])[0];
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
|
||||
//// [stringLiteralCheckedInIf01.js]
|
||||
@@ -28,5 +26,4 @@ function f(foo) {
|
||||
else {
|
||||
return foo[0];
|
||||
}
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
|
||||
@@ -30,7 +30,4 @@ function f(foo: T) {
|
||||
>foo : Symbol(foo, Decl(stringLiteralCheckedInIf01.ts, 4, 11))
|
||||
>S : Symbol(S, Decl(stringLiteralCheckedInIf01.ts, 0, 0))
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
>Error : Symbol(Error, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
}
|
||||
|
||||
@@ -38,9 +38,4 @@ function f(foo: T) {
|
||||
>S : "a" | "b"
|
||||
>0 : number
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
>new Error("Unreachable code hit.") : Error
|
||||
>Error : ErrorConstructor
|
||||
>"Unreachable code hit." : string
|
||||
}
|
||||
|
||||
@@ -14,8 +14,6 @@ function f(foo: T) {
|
||||
else {
|
||||
return foo[0];
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
|
||||
//// [stringLiteralCheckedInIf02.js]
|
||||
@@ -29,5 +27,4 @@ function f(foo) {
|
||||
else {
|
||||
return foo[0];
|
||||
}
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
|
||||
@@ -36,7 +36,4 @@ function f(foo: T) {
|
||||
return foo[0];
|
||||
>foo : Symbol(foo, Decl(stringLiteralCheckedInIf02.ts, 8, 11))
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
>Error : Symbol(Error, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
}
|
||||
|
||||
@@ -44,9 +44,4 @@ function f(foo: T) {
|
||||
>foo : ("a" | "b")[]
|
||||
>0 : number
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
>new Error("Unreachable code hit.") : Error
|
||||
>Error : ErrorConstructor
|
||||
>"Unreachable code hit." : string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user