You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.errors.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
tests/cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts(19,59): error TS2345: Argument of type '(c: C) => B' is not assignable to parameter of type '(x: C) => C'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/contextualTypingOfGenericFunctionTypedArguments1.errors.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts(16,32): error TS2345: Argument of type '(x: number) => string' is not assignable to parameter of type '(x: number) => Date'.
2
2
Type 'string' is not assignable to type 'Date'.
3
+
Property 'toDateString' is missing in type 'String'.
3
4
tests/cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts(17,32): error TS2345: Argument of type '(x: number) => string' is not assignable to parameter of type '(x: number) => Date'.
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts(25,23): error TS2345: Argument of type '(a: T) => T' is not assignable to parameter of type '(x: Date) => Date'.
6
6
Types of parameters 'a' and 'x' are incompatible.
7
7
Type 'T' is not assignable to type 'Date'.
8
+
Property 'toDateString' is missing in type 'RegExp'.
8
9
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts(37,36): error TS2345: Argument of type '(x: E) => F' is not assignable to parameter of type '(x: E) => E'.
9
10
Type 'F' is not assignable to type 'E'.
10
11
tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithGenericSignatureArguments2.ts(50,21): error TS2345: Argument of type 'Date' is not assignable to parameter of type 'T'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/genericCombinators2.errors.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
tests/cases/compiler/genericCombinators2.ts(15,43): error TS2345: Argument of type '(x: number, y: string) => string' is not assignable to parameter of type '(x: number, y: string) => Date'.
2
2
Type 'string' is not assignable to type 'Date'.
3
+
Property 'toDateString' is missing in type 'String'.
3
4
tests/cases/compiler/genericCombinators2.ts(16,43): error TS2345: Argument of type '(x: number, y: string) => string' is not assignable to parameter of type '(x: number, y: string) => Date'.
4
5
Type 'string' is not assignable to type 'Date'.
5
6
@@ -23,6 +24,7 @@ tests/cases/compiler/genericCombinators2.ts(16,43): error TS2345: Argument of ty
23
24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
25
!!! error TS2345: Argument of type '(x: number, y: string) => string' is not assignable to parameter of type '(x: number, y: string) => Date'.
25
26
!!! error TS2345: Type 'string' is not assignable to type 'Date'.
27
+
!!! error TS2345: Property 'toDateString' is missing in type 'String'.
26
28
var r5b = _.map<number, string, Date>(c2, rf1);
27
29
~~~
28
30
!!! error TS2345: Argument of type '(x: number, y: string) => string' is not assignable to parameter of type '(x: number, y: string) => Date'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/incompatibleTypes.errors.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ tests/cases/compiler/incompatibleTypes.ts(33,7): error TS2420: Class 'C4' incorr
17
17
tests/cases/compiler/incompatibleTypes.ts(42,5): error TS2345: Argument of type 'C1' is not assignable to parameter of type 'IFoo2'.
18
18
Types of property 'p1' are incompatible.
19
19
Type '() => string' is not assignable to type '(s: string) => number'.
20
+
Type 'string' is not assignable to type 'number'.
20
21
tests/cases/compiler/incompatibleTypes.ts(49,5): error TS2345: Argument of type '{ e: number; f: number; }' is not assignable to parameter of type '{ c: { b: string; }; d: string; }'.
21
22
Property 'c' is missing in type '{ e: number; f: number; }'.
22
23
tests/cases/compiler/incompatibleTypes.ts(66,5): error TS2322: Type '{ e: number; f: number; }' is not assignable to type '{ a: { a: string; }; b: string; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/interfaceAssignmentCompat.errors.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
tests/cases/compiler/interfaceAssignmentCompat.ts(32,18): error TS2345: Argument of type '(a: IFrenchEye, b: IFrenchEye) => number' is not assignable to parameter of type '(a: IEye, b: IEye) => number'.
2
2
Types of parameters 'a' and 'a' are incompatible.
3
3
Type 'IFrenchEye' is not assignable to type 'IEye'.
4
+
Property 'color' is missing in type 'IFrenchEye'.
4
5
tests/cases/compiler/interfaceAssignmentCompat.ts(37,29): error TS2339: Property '_map' does not exist on type 'typeof Color'.
5
6
tests/cases/compiler/interfaceAssignmentCompat.ts(42,13): error TS2322: Type 'IEye' is not assignable to type 'IFrenchEye'.
6
7
Property 'coleur' is missing in type 'IEye'.
@@ -45,6 +46,7 @@ tests/cases/compiler/interfaceAssignmentCompat.ts(44,9): error TS2322: Type 'IEy
45
46
!!! error TS2345: Argument of type '(a: IFrenchEye, b: IFrenchEye) => number' is not assignable to parameter of type '(a: IEye, b: IEye) => number'.
46
47
!!! error TS2345: Types of parameters 'a' and 'a' are incompatible.
47
48
!!! error TS2345: Type 'IFrenchEye' is not assignable to type 'IEye'.
49
+
!!! error TS2345: Property 'color' is missing in type 'IFrenchEye'.
0 commit comments