mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Update baselines
This commit is contained in:
parent
834a476a96
commit
2233ebadea
@ -1,125 +1,125 @@
|
||||
tests/cases/compiler/promisePermutations.ts(74,70): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(74,70): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(79,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(79,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(82,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(82,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(83,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(83,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(84,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(84,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(88,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(88,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(91,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(91,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(92,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(92,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(93,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(93,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(97,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(97,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(100,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(100,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(101,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(101,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(102,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(102,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(106,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(106,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations.ts(109,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(109,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(110,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(110,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations.ts(111,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(111,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations.ts(117,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(117,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(120,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(120,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(121,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(121,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(122,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(122,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(126,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(126,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(129,33): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(129,33): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations.ts(132,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(132,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(133,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(133,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(134,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(134,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations.ts(137,33): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(137,33): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations.ts(144,35): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(144,35): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations.ts(152,36): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(152,36): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
tests/cases/compiler/promisePermutations.ts(156,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(156,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
Type 'number' is not assignable to type 'string'.
|
||||
tests/cases/compiler/promisePermutations.ts(158,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(158,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations.ts(159,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(159,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
Type 'number' is not assignable to type 'string'.
|
||||
tests/cases/compiler/promisePermutations.ts(160,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations.ts(160,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
@ -206,143 +206,143 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2763: No overload m
|
||||
var s3c = s3.then(testFunction3P, testFunction3, testFunction3);
|
||||
var s3d = s3.then(testFunction3P, testFunction3, testFunction3).then(testFunction3, testFunction3, testFunction3); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
|
||||
var r4: IPromise<string>;
|
||||
var sIPromise: (x: any) => IPromise<string>;
|
||||
var sPromise: (x: any) => Promise<string>;
|
||||
var r4a = r4.then(testFunction4, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r4b = r4.then(sIPromise, testFunction4, testFunction4).then(sIPromise, testFunction4, testFunction4); // ok
|
||||
var s4: Promise<string>;
|
||||
var s4a = s4.then(testFunction4, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s4b = s4.then(testFunction4P, testFunction4P, testFunction4P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s4c = s4.then(testFunction4P, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s4d = s4.then(sIPromise, testFunction4P, testFunction4).then(sIPromise, testFunction4P, testFunction4);
|
||||
|
||||
var r5: IPromise<string>;
|
||||
var r5a = r5.then(testFunction5, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r5b = r5.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s5: Promise<string>;
|
||||
var s5a = s5.then(testFunction5, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s5b = s5.then(testFunction5P, testFunction5P, testFunction5P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s5c = s5.then(testFunction5P, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s5d = s5.then(sPromise, sPromise, sPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r6: IPromise<string>;
|
||||
var r6a = r6.then(testFunction6, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r6b = r6.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s6: Promise<string>;
|
||||
var s6a = s6.then(testFunction6, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s6b = s6.then(testFunction6P, testFunction6P, testFunction6P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s6c = s6.then(testFunction6P, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s6d = s6.then(sPromise, sPromise, sPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r7: IPromise<string>;
|
||||
var r7a = r7.then(testFunction7, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r7b = r7.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s7: Promise<string>;
|
||||
var s7a = r7.then(testFunction7, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var s7b = r7.then(testFunction7P, testFunction7P, testFunction7P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var s7c = r7.then(testFunction7P, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var s7d = r7.then(sPromise, sPromise, sPromise).then(sPromise, sPromise, sPromise); // ok?
|
||||
|
||||
var r8: IPromise<number>;
|
||||
@ -350,78 +350,78 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2763: No overload m
|
||||
var nPromise: (x: any) => Promise<number>;
|
||||
var r8a = r8.then(testFunction8, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r8b = r8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var s8: Promise<number>;
|
||||
var s8a = s8.then(testFunction8, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s8b = s8.then(testFunction8P, testFunction8P, testFunction8P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s8c = s8.then(testFunction8P, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s8d = s8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
|
||||
|
||||
var r9: IPromise<number>;
|
||||
var r9a = r9.then(testFunction9, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r9b = r9.then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var r9c = r9.then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var r9d = r9.then(testFunction, sIPromise, nIPromise); // ok
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2763: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2769: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r9e = r9.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s9: Promise<number>;
|
||||
var s9a = s9.then(testFunction9, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s9b = s9.then(testFunction9P, testFunction9P, testFunction9P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s9c = s9.then(testFunction9P, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s9d = s9.then(sPromise, sPromise, sPromise); // ok
|
||||
var s9e = s9.then(nPromise, nPromise, nPromise); // ok
|
||||
var s9f = s9.then(testFunction, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2763: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2769: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s9g = s9.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r10 = testFunction10(x => x);
|
||||
@ -430,10 +430,10 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2763: No overload m
|
||||
var r10c = r10.then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var r10d = r10.then(testFunction, sIPromise, nIPromise); // ok
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var r10e = r10.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s10 = testFunction10P(x => x);
|
||||
var s10a = s10.then(testFunction10, testFunction10, testFunction10); // ok
|
||||
@ -443,51 +443,51 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2763: No overload m
|
||||
var s10e = s10.then(nIPromise, nPromise, nIPromise); // ok
|
||||
var s10f = s10.then(testFunctionP, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
!!! error TS2763: Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
!!! error TS2769: Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
!!! related TS2728 /.ts/lib.es5.d.ts:1413:5: 'catch' is declared here.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s10g = s10.then(testFunctionP, nIPromise, sIPromise).then(sPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r11: IPromise<number>;
|
||||
var r11a = r11.then(testFunction11, testFunction11, testFunction11); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:13:5: The last overload is declared here.
|
||||
var s11: Promise<number>;
|
||||
var s11a = s11.then(testFunction11, testFunction11, testFunction11); // ok
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s11b = s11.then(testFunction11P, testFunction11P, testFunction11P); // error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
!!! error TS2763: Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
!!! error TS2769: Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
var s11c = s11.then(testFunction11P, testFunction11, testFunction11); // error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2763: Types of property 'then' are incompatible.
|
||||
!!! error TS2763: Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '{ <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; }'.
|
||||
!!! error TS2763: Types of parameters 'onfulfilled' and 'success' are incompatible.
|
||||
!!! error TS2763: Types of parameters 'value' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2769: Types of property 'then' are incompatible.
|
||||
!!! error TS2769: Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '{ <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>; }'.
|
||||
!!! error TS2769: Types of parameters 'onfulfilled' and 'success' are incompatible.
|
||||
!!! error TS2769: Types of parameters 'value' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations.ts:5:5: The last overload is declared here.
|
||||
|
||||
var r12 = testFunction12(x => x);
|
||||
var r12a = r12.then(testFunction12, testFunction12, testFunction12); // ok
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
tests/cases/compiler/promisePermutations2.ts(73,70): error TS2345: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations2.ts(78,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(78,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
@ -15,46 +15,46 @@ tests/cases/compiler/promisePermutations2.ts(82,19): error TS2345: Argument of t
|
||||
tests/cases/compiler/promisePermutations2.ts(83,19): error TS2345: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations2.ts(87,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(87,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(90,19): error TS2345: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(91,19): error TS2345: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(92,19): error TS2345: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(96,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(96,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(99,19): error TS2345: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(100,19): error TS2345: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(101,19): error TS2345: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(105,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(105,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations2.ts(108,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(108,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(109,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(109,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations2.ts(110,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(110,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations2.ts(116,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(116,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(119,19): error TS2345: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(120,19): error TS2345: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(121,19): error TS2345: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(125,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(125,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(128,33): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(128,33): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
@ -64,12 +64,12 @@ tests/cases/compiler/promisePermutations2.ts(132,19): error TS2345: Argument of
|
||||
tests/cases/compiler/promisePermutations2.ts(133,19): error TS2345: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(136,33): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(143,35): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(143,35): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(151,36): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
tests/cases/compiler/promisePermutations2.ts(155,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations2.ts(155,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
@ -172,12 +172,12 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var sPromise: (x: any) => Promise<string>;
|
||||
var r4a = r4.then(testFunction4, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r4b = r4.then(sIPromise, testFunction4, testFunction4).then(sIPromise, testFunction4, testFunction4); // ok
|
||||
var s4: Promise<string>;
|
||||
var s4a = s4.then(testFunction4, testFunction4, testFunction4); // error
|
||||
@ -200,10 +200,10 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r5: IPromise<string>;
|
||||
var r5a = r5.then(testFunction5, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r5b = r5.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s5: Promise<string>;
|
||||
var s5a = s5.then(testFunction5, testFunction5, testFunction5); // error
|
||||
@ -220,10 +220,10 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r6: IPromise<string>;
|
||||
var r6a = r6.then(testFunction6, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r6b = r6.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s6: Promise<string>;
|
||||
var s6a = s6.then(testFunction6, testFunction6, testFunction6); // error
|
||||
@ -240,36 +240,36 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r7: IPromise<string>;
|
||||
var r7a = r7.then(testFunction7, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r7b = r7.then(sIPromise, sIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s7: Promise<string>;
|
||||
var s7a = r7.then(testFunction7, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var s7b = r7.then(testFunction7P, testFunction7P, testFunction7P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var s7c = r7.then(testFunction7P, testFunction7, testFunction7); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'cb' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var s7d = r7.then(sPromise, sPromise, sPromise).then(sPromise, sPromise, sPromise); // ok?
|
||||
|
||||
var r8: IPromise<number>;
|
||||
@ -277,10 +277,10 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var nPromise: (x: any) => Promise<number>;
|
||||
var r8a = r8.then(testFunction8, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r8b = r8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var s8: Promise<number>;
|
||||
var s8a = s8.then(testFunction8, testFunction8, testFunction8); // error
|
||||
@ -297,20 +297,20 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r9: IPromise<number>;
|
||||
var r9a = r9.then(testFunction9, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r9b = r9.then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var r9c = r9.then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var r9d = r9.then(testFunction, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2763: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2769: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r9e = r9.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s9: Promise<number>;
|
||||
var s9a = s9.then(testFunction9, testFunction9, testFunction9); // error
|
||||
@ -336,10 +336,10 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r10c = r10.then(nIPromise, nIPromise, nIPromise); // ok
|
||||
var r10d = r10.then(testFunction, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var r10e = r10.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
var s10 = testFunction10P(x => x);
|
||||
var s10a = s10.then(testFunction10, testFunction10, testFunction10); // ok
|
||||
@ -357,12 +357,12 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
|
||||
var r11: IPromise<number>;
|
||||
var r11a = r11.then(testFunction11, testFunction11, testFunction11); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations2.ts:12:5: The last overload is declared here.
|
||||
var s11: Promise<number>;
|
||||
var s11a = s11.then(testFunction11, testFunction11, testFunction11); // ok
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
tests/cases/compiler/promisePermutations3.ts(68,69): error TS2345: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(73,70): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(73,70): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
@ -9,39 +9,39 @@ tests/cases/compiler/promisePermutations3.ts(73,70): error TS2763: No overload m
|
||||
tests/cases/compiler/promisePermutations3.ts(78,19): error TS2345: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(81,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(81,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(82,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(82,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(83,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(83,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
Types of parameters 'x' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(87,19): error TS2345: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(90,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(90,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(91,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(91,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(92,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(92,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(96,19): error TS2345: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(99,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(99,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(100,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(100,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(101,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(101,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(105,19): error TS2345: Argument of type '(cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
@ -55,50 +55,50 @@ tests/cases/compiler/promisePermutations3.ts(110,19): error TS2345: Argument of
|
||||
Types of parameters 'cb' and 'value' are incompatible.
|
||||
Type 'string' is not assignable to type '<T>(a: T) => T'.
|
||||
tests/cases/compiler/promisePermutations3.ts(116,19): error TS2345: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(119,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(119,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(120,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(120,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(121,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(121,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(125,19): error TS2345: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(128,33): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
Type 'string' is not assignable to type 'number'.
|
||||
tests/cases/compiler/promisePermutations3.ts(131,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(131,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(132,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(132,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(133,19): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(133,19): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(136,33): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(136,33): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(143,35): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(151,36): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(151,36): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(155,21): error TS2345: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
Type 'number' is not assignable to type 'string'.
|
||||
tests/cases/compiler/promisePermutations3.ts(157,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(157,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
tests/cases/compiler/promisePermutations3.ts(158,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(158,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
Type 'number' is not assignable to type 'string'.
|
||||
tests/cases/compiler/promisePermutations3.ts(159,21): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/promisePermutations3.ts(159,21): error TS2769: No overload matches this call.
|
||||
The last overload gave the following error.
|
||||
Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
@ -190,12 +190,12 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s3c = s3.then(testFunction3P, testFunction3, testFunction3);
|
||||
var s3d = s3.then(testFunction3P, testFunction3, testFunction3).then(testFunction3, testFunction3, testFunction3);
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number) => IPromise<number>' is not assignable to parameter of type '(value: IPromise<number>) => IPromise<number>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
|
||||
var r4: IPromise<string>;
|
||||
var sIPromise: (x: any) => IPromise<string>;
|
||||
@ -209,28 +209,28 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s4: Promise<string>;
|
||||
var s4a = s4.then(testFunction4, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s4b = s4.then(testFunction4P, testFunction4P, testFunction4P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s4c = s4.then(testFunction4P, testFunction4, testFunction4); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2763: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, y?: string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! error TS2769: Types of parameters 'x' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s4d = s4.then(sIPromise, testFunction4P, testFunction4).then(sIPromise, testFunction4P, testFunction4);
|
||||
|
||||
var r5: IPromise<string>;
|
||||
@ -241,22 +241,22 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s5: Promise<string>;
|
||||
var s5a = s5.then(testFunction5, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s5b = s5.then(testFunction5P, testFunction5P, testFunction5P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s5c = s5.then(testFunction5P, testFunction5, testFunction5); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: (a: string) => string) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s5d = s5.then(sPromise, sPromise, sPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r6: IPromise<string>;
|
||||
@ -267,22 +267,22 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s6: Promise<string>;
|
||||
var s6a = s6.then(testFunction6, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => IPromise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s6b = s6.then(testFunction6P, testFunction6P, testFunction6P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => Promise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s6c = s6.then(testFunction6P, testFunction6, testFunction6); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: number, cb: <T>(a: T) => T) => Promise<string>' is not assignable to parameter of type '(value: string) => IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s6d = s6.then(sPromise, sPromise, sPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r7: IPromise<string>;
|
||||
@ -318,22 +318,22 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s8: Promise<number>;
|
||||
var s8a = s8.then(testFunction8, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s8b = s8.then(testFunction8P, testFunction8P, testFunction8P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s8c = s8.then(testFunction8P, testFunction8, testFunction8); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: (a: T) => T) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s8d = s8.then(nIPromise, nIPromise, nIPromise).then(nIPromise, nIPromise, nIPromise); // ok
|
||||
|
||||
var r9: IPromise<number>;
|
||||
@ -351,31 +351,31 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s9: Promise<number>;
|
||||
var s9a = s9.then(testFunction9, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => IPromise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s9b = s9.then(testFunction9P, testFunction9P, testFunction9P); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => Promise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s9c = s9.then(testFunction9P, testFunction9, testFunction9); // error
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(x: T, cb: <U>(a: U) => U) => Promise<T>' is not assignable to parameter of type '(value: number) => IPromise<any>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s9d = s9.then(sPromise, sPromise, sPromise); // ok
|
||||
var s9e = s9.then(nPromise, nPromise, nPromise); // ok
|
||||
var s9f = s9.then(testFunction, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2763: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => IPromise<number>'.
|
||||
!!! error TS2769: Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s9g = s9.then(testFunction, nIPromise, sIPromise).then(sIPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r10 = testFunction10(x => x);
|
||||
@ -394,12 +394,12 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s10e = s10.then(nIPromise, nPromise, nIPromise); // ok
|
||||
var s10f = s10.then(testFunctionP, sIPromise, nIPromise); // error
|
||||
~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
!!! error TS2763: Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
|
||||
!!! error TS2769: Property 'catch' is missing in type 'IPromise<string>' but required in type 'Promise<number>'.
|
||||
!!! related TS2728 /.ts/lib.es5.d.ts:1413:5: 'catch' is declared here.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s10g = s10.then(testFunctionP, nIPromise, sIPromise).then(sPromise, sIPromise, sIPromise); // ok
|
||||
|
||||
var r11: IPromise<number>;
|
||||
@ -411,31 +411,31 @@ tests/cases/compiler/promisePermutations3.ts(165,21): error TS2345: Argument of
|
||||
var s11: Promise<number>;
|
||||
var s11a = s11.then(testFunction11, testFunction11, testFunction11); // ok
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s11b = s11.then(testFunction11P, testFunction11P, testFunction11P); // error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
!!! error TS2763: Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => Promise<string>'.
|
||||
!!! error TS2769: Type 'Promise<number>' is not assignable to type 'Promise<string>'.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
var s11c = s11.then(testFunction11P, testFunction11, testFunction11); // error
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: The last overload gave the following error.
|
||||
!!! error TS2763: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2763: Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2763: Types of property 'then' are incompatible.
|
||||
!!! error TS2763: Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '<U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void) => IPromise<U>'.
|
||||
!!! error TS2763: Types of parameters 'onfulfilled' and 'success' are incompatible.
|
||||
!!! error TS2763: Types of parameters 'value' and 'value' are incompatible.
|
||||
!!! error TS2763: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2765 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: The last overload gave the following error.
|
||||
!!! error TS2769: Argument of type '{ (x: number): Promise<number>; (x: string): Promise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
|
||||
!!! error TS2769: Type 'Promise<number>' is not assignable to type 'IPromise<string>'.
|
||||
!!! error TS2769: Types of property 'then' are incompatible.
|
||||
!!! error TS2769: Type '{ <TResult1 = number, TResult2 = never>(onfulfilled?: (value: number) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => Promise<U>, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => Promise<U>, progress?: (progress: any) => void): Promise<U>; <U>(success?: (value: number) => U, error?: (error: any) => U, progress?: (progress: any) => void): Promise<U>; }' is not assignable to type '<U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void) => IPromise<U>'.
|
||||
!!! error TS2769: Types of parameters 'onfulfilled' and 'success' are incompatible.
|
||||
!!! error TS2769: Types of parameters 'value' and 'value' are incompatible.
|
||||
!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
||||
!!! related TS2771 tests/cases/compiler/promisePermutations3.ts:7:5: The last overload is declared here.
|
||||
|
||||
var r12 = testFunction12(x => x);
|
||||
var r12a = r12.then(testFunction12, testFunction12, testFunction12); // ok
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/underscoreTest1_underscoreTests.ts(26,1): error TS2763: No overload matches this call.
|
||||
tests/cases/compiler/underscoreTest1_underscoreTests.ts(26,1): error TS2769: No overload matches this call.
|
||||
Overload 1 of 2, '(list: (string | number | boolean)[], iterator?: Iterator_<string | number | boolean, boolean>, context?: any): boolean', gave the following error.
|
||||
Argument of type '<T>(value: T) => T' is not assignable to parameter of type 'Iterator_<string | number | boolean, boolean>'.
|
||||
Type 'string | number | boolean' is not assignable to type 'boolean'.
|
||||
@ -36,14 +36,14 @@ tests/cases/compiler/underscoreTest1_underscoreTests.ts(26,1): error TS2763: No
|
||||
|
||||
_.all([true, 1, null, 'yes'], _.identity);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2763: No overload matches this call.
|
||||
!!! error TS2763: Overload 1 of 2, '(list: (string | number | boolean)[], iterator?: Iterator_<string | number | boolean, boolean>, context?: any): boolean', gave the following error.
|
||||
!!! error TS2763: Argument of type '<T>(value: T) => T' is not assignable to parameter of type 'Iterator_<string | number | boolean, boolean>'.
|
||||
!!! error TS2763: Type 'string | number | boolean' is not assignable to type 'boolean'.
|
||||
!!! error TS2763: Type 'string' is not assignable to type 'boolean'.
|
||||
!!! error TS2763: Overload 2 of 2, '(list: Dictionary<unknown>, iterator?: Iterator_<unknown, boolean>, context?: any): boolean', gave the following error.
|
||||
!!! error TS2763: Argument of type '(string | number | boolean)[]' is not assignable to parameter of type 'Dictionary<unknown>'.
|
||||
!!! error TS2763: Index signature is missing in type '(string | number | boolean)[]'.
|
||||
!!! error TS2769: No overload matches this call.
|
||||
!!! error TS2769: Overload 1 of 2, '(list: (string | number | boolean)[], iterator?: Iterator_<string | number | boolean, boolean>, context?: any): boolean', gave the following error.
|
||||
!!! error TS2769: Argument of type '<T>(value: T) => T' is not assignable to parameter of type 'Iterator_<string | number | boolean, boolean>'.
|
||||
!!! error TS2769: Type 'string | number | boolean' is not assignable to type 'boolean'.
|
||||
!!! error TS2769: Type 'string' is not assignable to type 'boolean'.
|
||||
!!! error TS2769: Overload 2 of 2, '(list: Dictionary<unknown>, iterator?: Iterator_<unknown, boolean>, context?: any): boolean', gave the following error.
|
||||
!!! error TS2769: Argument of type '(string | number | boolean)[]' is not assignable to parameter of type 'Dictionary<unknown>'.
|
||||
!!! error TS2769: Index signature is missing in type '(string | number | boolean)[]'.
|
||||
|
||||
_.any([null, 0, 'yes', false]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user