Skip to content

Commit

Permalink
Accept new baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Apr 25, 2019
1 parent 4384c90 commit fcd6f52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions tests/baselines/reference/bluebirdStaticThis.types
Expand Up @@ -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>; }
Expand All @@ -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>; }
Expand All @@ -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>; }
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fcd6f52

Please sign in to comment.