Accepted baselines.

This commit is contained in:
Daniel Rosenwasser
2015-11-06 14:28:54 -08:00
parent f939ff23ce
commit d234b8df2e
6 changed files with 0 additions and 22 deletions

View File

@@ -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.");
}

View File

@@ -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, --, --))
}

View File

@@ -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
}

View File

@@ -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.");
}

View File

@@ -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, --, --))
}

View File

@@ -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
}