mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Accept new baselines
This commit is contained in:
parent
4384c90670
commit
fcd6f5225a
@ -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>; }
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user