From fcd6f5225acda3254a4e53ed12ad854bbeb2e4d1 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 25 Apr 2019 10:01:40 -0700 Subject: [PATCH] Accept new baselines --- .../baselines/reference/bluebirdStaticThis.types | 12 ++++++------ .../genericCallWithFunctionTypedArguments2.types | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/baselines/reference/bluebirdStaticThis.types b/tests/baselines/reference/bluebirdStaticThis.types index 7708a733c5966..eec02478b2bf3 100644 --- a/tests/baselines/reference/bluebirdStaticThis.types +++ b/tests/baselines/reference/bluebirdStaticThis.types @@ -699,9 +699,9 @@ var fooProm: Promise; >fooProm : Promise fooProm = Promise.try(Promise, () => { ->fooProm = Promise.try(Promise, () => { return foo;}) : Promise +>fooProm = Promise.try(Promise, () => { return foo;}) : any >fooProm : Promise ->Promise.try(Promise, () => { return foo;}) : Promise +>Promise.try(Promise, () => { return foo;}) : any >Promise.try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } >Promise : typeof Promise >try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } @@ -713,9 +713,9 @@ fooProm = Promise.try(Promise, () => { }); fooProm = Promise.try(Promise, () => { ->fooProm = Promise.try(Promise, () => { return foo;}, arr) : Promise +>fooProm = Promise.try(Promise, () => { return foo;}, arr) : any >fooProm : Promise ->Promise.try(Promise, () => { return foo;}, arr) : Promise +>Promise.try(Promise, () => { return foo;}, arr) : any >Promise.try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } >Promise : typeof Promise >try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } @@ -729,9 +729,9 @@ fooProm = Promise.try(Promise, () => { >arr : any[] fooProm = Promise.try(Promise, () => { ->fooProm = Promise.try(Promise, () => { return foo;}, arr, x) : Promise +>fooProm = Promise.try(Promise, () => { return foo;}, arr, x) : any >fooProm : Promise ->Promise.try(Promise, () => { return foo;}, arr, x) : Promise +>Promise.try(Promise, () => { return foo;}, arr, x) : any >Promise.try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } >Promise : typeof Promise >try : { (dit: typeof Promise, fn: () => Promise.Thenable, args?: any[], ctx?: any): Promise; (dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise; } diff --git a/tests/baselines/reference/genericCallWithFunctionTypedArguments2.types b/tests/baselines/reference/genericCallWithFunctionTypedArguments2.types index 1cd9e7ccd111f..9699261a641fb 100644 --- a/tests/baselines/reference/genericCallWithFunctionTypedArguments2.types +++ b/tests/baselines/reference/genericCallWithFunctionTypedArguments2.types @@ -78,15 +78,15 @@ var r4 = foo2(1, i2); // error >i2 : I2 var r4b = foo2(1, a); // any ->r4b : unknown ->foo2(1, a) : unknown +>r4b : number +>foo2(1, a) : number >foo2 : (x: T, cb: new (a: T) => U) => U >1 : 1 >a : new (x: T) => T var r5 = foo2(1, i); // any ->r5 : unknown ->foo2(1, i) : unknown +>r5 : number +>foo2(1, i) : number >foo2 : (x: T, cb: new (a: T) => U) => U >1 : 1 >i : I @@ -112,16 +112,16 @@ function foo3(x: T, cb: new(a: T) => U, y: U) { } var r7 = foo3(null, i, ''); // any ->r7 : unknown ->foo3(null, i, '') : unknown +>r7 : any +>foo3(null, i, '') : any >foo3 : (x: T, cb: new (a: T) => U, y: U) => U >null : null >i : I >'' : "" var r7b = foo3(null, a, ''); // any ->r7b : unknown ->foo3(null, a, '') : unknown +>r7b : any +>foo3(null, a, '') : any >foo3 : (x: T, cb: new (a: T) => U, y: U) => U >null : null >a : new (x: T) => T