mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Accept new baselines
This commit is contained in:
parent
b8e9ecfb1a
commit
10d331ee9f
@ -4,7 +4,7 @@ let cond: boolean;
|
||||
>cond : boolean
|
||||
|
||||
function ff() {
|
||||
>ff : () => never
|
||||
>ff : () => void
|
||||
|
||||
let x: string | undefined;
|
||||
>x : string | undefined
|
||||
|
||||
@ -7,7 +7,7 @@ while (true) {
|
||||
>true : boolean
|
||||
|
||||
function f() {
|
||||
>f : () => never
|
||||
>f : () => void
|
||||
|
||||
target:
|
||||
>target : any
|
||||
|
||||
@ -16,7 +16,7 @@ for (var x = <number>undefined; ;) { }
|
||||
|
||||
// new declaration space, making redeclaring x as a string valid
|
||||
function declSpace() {
|
||||
>declSpace : () => never
|
||||
>declSpace : () => void
|
||||
|
||||
for (var x = 'this is a string'; ;) { }
|
||||
>x : string
|
||||
|
||||
@ -42,7 +42,7 @@ function isB(x: any): x is B {
|
||||
}
|
||||
|
||||
function f1(x: A | B) {
|
||||
>f1 : (x: A | B) => never
|
||||
>f1 : (x: A | B) => void
|
||||
>x : A | B
|
||||
>A : A
|
||||
>B : B
|
||||
@ -78,7 +78,7 @@ function f1(x: A | B) {
|
||||
}
|
||||
|
||||
function f2(x: A | B) {
|
||||
>f2 : (x: A | B) => never
|
||||
>f2 : (x: A | B) => void
|
||||
>x : A | B
|
||||
>A : A
|
||||
>B : B
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/nestedBlockScopedBindings3.ts ===
|
||||
function a0() {
|
||||
>a0 : () => never
|
||||
>a0 : () => void
|
||||
{
|
||||
for (let x = 0; x < 1; ) {
|
||||
>x : number
|
||||
@ -26,7 +26,7 @@ function a0() {
|
||||
}
|
||||
|
||||
function a1() {
|
||||
>a1 : () => never
|
||||
>a1 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
@ -48,7 +48,7 @@ function a1() {
|
||||
}
|
||||
|
||||
function a2() {
|
||||
>a2 : () => never
|
||||
>a2 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/nestedBlockScopedBindings4.ts ===
|
||||
function a0() {
|
||||
>a0 : () => never
|
||||
>a0 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
@ -28,7 +28,7 @@ function a0() {
|
||||
}
|
||||
|
||||
function a1() {
|
||||
>a1 : () => never
|
||||
>a1 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
@ -60,7 +60,7 @@ function a1() {
|
||||
}
|
||||
|
||||
function a2() {
|
||||
>a2 : () => never
|
||||
>a2 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
@ -93,7 +93,7 @@ function a2() {
|
||||
|
||||
|
||||
function a3() {
|
||||
>a3 : () => never
|
||||
>a3 : () => void
|
||||
|
||||
for (let x; x < 1;) {
|
||||
>x : any
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/nestedBlockScopedBindings6.ts ===
|
||||
function a0() {
|
||||
>a0 : () => never
|
||||
>a0 : () => void
|
||||
|
||||
for (let x of [1]) {
|
||||
>x : number
|
||||
@ -27,7 +27,7 @@ function a0() {
|
||||
}
|
||||
|
||||
function a1() {
|
||||
>a1 : () => never
|
||||
>a1 : () => void
|
||||
|
||||
for (let x of [1]) {
|
||||
>x : number
|
||||
@ -58,7 +58,7 @@ function a1() {
|
||||
}
|
||||
|
||||
function a2() {
|
||||
>a2 : () => never
|
||||
>a2 : () => void
|
||||
|
||||
for (let x of [1]) {
|
||||
>x : number
|
||||
@ -89,7 +89,7 @@ function a2() {
|
||||
}
|
||||
|
||||
function a3() {
|
||||
>a3 : () => never
|
||||
>a3 : () => void
|
||||
|
||||
for (let x of [1]) {
|
||||
>x : number
|
||||
|
||||
@ -7,7 +7,7 @@ while (true) {
|
||||
>true : boolean
|
||||
|
||||
function f() {
|
||||
>f : () => never
|
||||
>f : () => void
|
||||
|
||||
target:
|
||||
>target : any
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
=== tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts ===
|
||||
|
||||
function fn(x) {
|
||||
>fn : (x: any) => never
|
||||
>fn : (x: any) => void
|
||||
>x : any
|
||||
|
||||
throw x;
|
||||
@ -78,7 +78,7 @@ class C<T> {
|
||||
>T : T
|
||||
|
||||
biz() {
|
||||
>biz : () => never
|
||||
>biz : () => void
|
||||
|
||||
throw this.value;
|
||||
>this.value : T
|
||||
@ -93,15 +93,15 @@ class C<T> {
|
||||
}
|
||||
|
||||
var aa = {
|
||||
>aa : { id: number; biz(): never; }
|
||||
>{ id:12, biz() { throw this; }} : { id: number; biz(): never; }
|
||||
>aa : { id: number; biz(): void; }
|
||||
>{ id:12, biz() { throw this; }} : { id: number; biz(): void; }
|
||||
|
||||
id:12,
|
||||
>id : number
|
||||
>12 : number
|
||||
|
||||
biz() {
|
||||
>biz : () => never
|
||||
>biz : () => void
|
||||
|
||||
throw this;
|
||||
>this : any
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user