Accept new baselines

This commit is contained in:
Anders Hejlsberg 2019-04-25 10:01:40 -07:00
parent 4384c90670
commit fcd6f5225a
2 changed files with 14 additions and 14 deletions

View File

@ -699,9 +699,9 @@ var fooProm: Promise<Foo>;
>fooProm : Promise<Foo>
fooProm = Promise.try(Promise, () => {
>fooProm = Promise.try(Promise, () => { return foo;}) : Promise<Foo>
>fooProm = Promise.try(Promise, () => { return foo;}) : any
>fooProm : Promise<Foo>
>Promise.try(Promise, () => { return foo;}) : Promise<Foo>
>Promise.try(Promise, () => { return foo;}) : any
>Promise.try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }
>Promise : typeof Promise
>try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }
@ -713,9 +713,9 @@ fooProm = Promise.try(Promise, () => {
});
fooProm = Promise.try(Promise, () => {
>fooProm = Promise.try(Promise, () => { return foo;}, arr) : Promise<Foo>
>fooProm = Promise.try(Promise, () => { return foo;}, arr) : any
>fooProm : Promise<Foo>
>Promise.try(Promise, () => { return foo;}, arr) : Promise<Foo>
>Promise.try(Promise, () => { return foo;}, arr) : any
>Promise.try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }
>Promise : typeof Promise
>try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }
@ -729,9 +729,9 @@ fooProm = Promise.try(Promise, () => {
>arr : any[]
fooProm = Promise.try(Promise, () => {
>fooProm = Promise.try(Promise, () => { return foo;}, arr, x) : Promise<Foo>
>fooProm = Promise.try(Promise, () => { return foo;}, arr, x) : any
>fooProm : Promise<Foo>
>Promise.try(Promise, () => { return foo;}, arr, x) : Promise<Foo>
>Promise.try(Promise, () => { return foo;}, arr, x) : any
>Promise.try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }
>Promise : typeof Promise
>try : { <R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>; <R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>; }

View File

@ -78,15 +78,15 @@ var r4 = foo2(1, i2); // error
>i2 : I2<string>
var r4b = foo2(1, a); // any
>r4b : unknown
>foo2(1, a) : unknown
>r4b : number
>foo2(1, a) : number
>foo2 : <T, U>(x: T, cb: new (a: T) => U) => U
>1 : 1
>a : new <T>(x: T) => T
var r5 = foo2(1, i); // any
>r5 : unknown
>foo2(1, i) : unknown
>r5 : number
>foo2(1, i) : number
>foo2 : <T, U>(x: T, cb: new (a: T) => U) => U
>1 : 1
>i : I
@ -112,16 +112,16 @@ function foo3<T, U>(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 : <T, U>(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 : <T, U>(x: T, cb: new (a: T) => U, y: U) => U
>null : null
>a : new <T>(x: T) => T