From 10d331ee9fcc92b4aa8f6b94d454ca4647290e71 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Mon, 23 May 2016 13:08:23 -0700 Subject: [PATCH] Accept new baselines --- tests/baselines/reference/controlFlowIteration.types | 2 +- tests/baselines/reference/duplicateLabel3.types | 2 +- .../reference/forStatementsMultipleValidDecl.types | 2 +- tests/baselines/reference/narrowingOfDottedNames.types | 4 ++-- .../reference/nestedBlockScopedBindings3.types | 6 +++--- .../reference/nestedBlockScopedBindings4.types | 8 ++++---- .../reference/nestedBlockScopedBindings6.types | 8 ++++---- tests/baselines/reference/parser_duplicateLabel3.types | 2 +- .../reference/throwInEnclosingStatements.types | 10 +++++----- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/baselines/reference/controlFlowIteration.types b/tests/baselines/reference/controlFlowIteration.types index cefb250e01d..52be501d68e 100644 --- a/tests/baselines/reference/controlFlowIteration.types +++ b/tests/baselines/reference/controlFlowIteration.types @@ -4,7 +4,7 @@ let cond: boolean; >cond : boolean function ff() { ->ff : () => never +>ff : () => void let x: string | undefined; >x : string | undefined diff --git a/tests/baselines/reference/duplicateLabel3.types b/tests/baselines/reference/duplicateLabel3.types index bcbe11beee3..920a077aa9e 100644 --- a/tests/baselines/reference/duplicateLabel3.types +++ b/tests/baselines/reference/duplicateLabel3.types @@ -7,7 +7,7 @@ while (true) { >true : boolean function f() { ->f : () => never +>f : () => void target: >target : any diff --git a/tests/baselines/reference/forStatementsMultipleValidDecl.types b/tests/baselines/reference/forStatementsMultipleValidDecl.types index ae5959f1bd3..acb26f17312 100644 --- a/tests/baselines/reference/forStatementsMultipleValidDecl.types +++ b/tests/baselines/reference/forStatementsMultipleValidDecl.types @@ -16,7 +16,7 @@ for (var x = 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 diff --git a/tests/baselines/reference/narrowingOfDottedNames.types b/tests/baselines/reference/narrowingOfDottedNames.types index 9ab15afbd08..697e080b661 100644 --- a/tests/baselines/reference/narrowingOfDottedNames.types +++ b/tests/baselines/reference/narrowingOfDottedNames.types @@ -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 diff --git a/tests/baselines/reference/nestedBlockScopedBindings3.types b/tests/baselines/reference/nestedBlockScopedBindings3.types index f153a9a7cea..37b89242f3e 100644 --- a/tests/baselines/reference/nestedBlockScopedBindings3.types +++ b/tests/baselines/reference/nestedBlockScopedBindings3.types @@ -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 diff --git a/tests/baselines/reference/nestedBlockScopedBindings4.types b/tests/baselines/reference/nestedBlockScopedBindings4.types index 5d0ed2a1d91..b38d61f3f44 100644 --- a/tests/baselines/reference/nestedBlockScopedBindings4.types +++ b/tests/baselines/reference/nestedBlockScopedBindings4.types @@ -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 diff --git a/tests/baselines/reference/nestedBlockScopedBindings6.types b/tests/baselines/reference/nestedBlockScopedBindings6.types index f6c918766ae..5c8c1fa68fa 100644 --- a/tests/baselines/reference/nestedBlockScopedBindings6.types +++ b/tests/baselines/reference/nestedBlockScopedBindings6.types @@ -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 diff --git a/tests/baselines/reference/parser_duplicateLabel3.types b/tests/baselines/reference/parser_duplicateLabel3.types index cc420085ef0..88ea435bf3e 100644 --- a/tests/baselines/reference/parser_duplicateLabel3.types +++ b/tests/baselines/reference/parser_duplicateLabel3.types @@ -7,7 +7,7 @@ while (true) { >true : boolean function f() { ->f : () => never +>f : () => void target: >target : any diff --git a/tests/baselines/reference/throwInEnclosingStatements.types b/tests/baselines/reference/throwInEnclosingStatements.types index 26866ebb240..c0a43ca38f5 100644 --- a/tests/baselines/reference/throwInEnclosingStatements.types +++ b/tests/baselines/reference/throwInEnclosingStatements.types @@ -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 biz() { ->biz : () => never +>biz : () => void throw this.value; >this.value : T @@ -93,15 +93,15 @@ class C { } 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