Skip to content

Commit 4502213

Browse files
Accepted baselines.
1 parent 51787e3 commit 4502213

File tree

81 files changed

+95
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+95
-245
lines changed

tests/baselines/reference/aliasAssignments.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/compiler/aliasAssignments_1.ts(3,1): error TS2322: Type 'number' is not assignable to type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"'.
2-
Property 'someClass' is missing in type 'Number'.
32
tests/cases/compiler/aliasAssignments_1.ts(5,1): error TS2322: Type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"' is not assignable to type 'number'.
43

54

@@ -9,7 +8,6 @@ tests/cases/compiler/aliasAssignments_1.ts(5,1): error TS2322: Type 'typeof "tes
98
x = 1; // Should be error
109
~
1110
!!! error TS2322: Type 'number' is not assignable to type 'typeof "tests/cases/compiler/aliasAssignments_moduleA"'.
12-
!!! error TS2322: Property 'someClass' is missing in type 'Number'.
1311
var y = 1;
1412
y = moduleA; // should be error
1513
~
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts(3,5): error TS2322: Type 'number' is not assignable to type 'IArguments'.
2-
Property 'length' is missing in type 'Number'.
32

43

54
==== tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts (1 errors) ====
@@ -8,5 +7,4 @@ tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts(3,5): error TS
87
arguments = 10; /// This shouldnt be of type number and result in error.
98
~~~~~~~~~
109
!!! error TS2322: Type 'number' is not assignable to type 'IArguments'.
11-
!!! error TS2322: Property 'length' is missing in type 'Number'.
1210
}

tests/baselines/reference/arrayAssignmentTest1.errors.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ tests/cases/compiler/arrayAssignmentTest1.ts(70,1): error TS2322: Type 'C3[]' is
2626
Property 'C2M1' is missing in type 'C3'.
2727
tests/cases/compiler/arrayAssignmentTest1.ts(75,1): error TS2322: Type 'C2[]' is not assignable to type 'C3[]'.
2828
Type 'C2' is not assignable to type 'C3'.
29+
Property 'CM3M1' is missing in type 'C2'.
2930
tests/cases/compiler/arrayAssignmentTest1.ts(76,1): error TS2322: Type 'C1[]' is not assignable to type 'C3[]'.
3031
Type 'C1' is not assignable to type 'C3'.
32+
Property 'CM3M1' is missing in type 'C1'.
3133
tests/cases/compiler/arrayAssignmentTest1.ts(77,1): error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
3234
Type 'I1' is not assignable to type 'C3'.
35+
Property 'CM3M1' is missing in type 'I1'.
3336
tests/cases/compiler/arrayAssignmentTest1.ts(79,1): error TS2322: Type '() => C1' is not assignable to type 'any[]'.
3437
Property 'push' is missing in type '() => C1'.
3538
tests/cases/compiler/arrayAssignmentTest1.ts(80,1): error TS2322: Type '{ one: number; }' is not assignable to type 'any[]'.
@@ -159,14 +162,17 @@ tests/cases/compiler/arrayAssignmentTest1.ts(85,1): error TS2322: Type 'I1' is n
159162
~~~~~~
160163
!!! error TS2322: Type 'C2[]' is not assignable to type 'C3[]'.
161164
!!! error TS2322: Type 'C2' is not assignable to type 'C3'.
165+
!!! error TS2322: Property 'CM3M1' is missing in type 'C2'.
162166
arr_c3 = arr_c1_2; // should be an error - is
163167
~~~~~~
164168
!!! error TS2322: Type 'C1[]' is not assignable to type 'C3[]'.
165169
!!! error TS2322: Type 'C1' is not assignable to type 'C3'.
170+
!!! error TS2322: Property 'CM3M1' is missing in type 'C1'.
166171
arr_c3 = arr_i1_2; // should be an error - is
167172
~~~~~~
168173
!!! error TS2322: Type 'I1[]' is not assignable to type 'C3[]'.
169174
!!! error TS2322: Type 'I1' is not assignable to type 'C3'.
175+
!!! error TS2322: Property 'CM3M1' is missing in type 'I1'.
170176

171177
arr_any = f1; // should be an error - is
172178
~~~~~~~

tests/baselines/reference/arrayLiterals3.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error
1818
Types of parameters 'items' and 'items' are incompatible.
1919
Type 'number | string' is not assignable to type 'Number'.
2020
Type 'string' is not assignable to type 'Number'.
21-
Property 'toFixed' is missing in type 'String'.
2221

2322

2423
==== tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts (6 errors) ====
@@ -82,5 +81,4 @@ tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error
8281
!!! error TS2322: Types of parameters 'items' and 'items' are incompatible.
8382
!!! error TS2322: Type 'number | string' is not assignable to type 'Number'.
8483
!!! error TS2322: Type 'string' is not assignable to type 'Number'.
85-
!!! error TS2322: Property 'toFixed' is missing in type 'String'.
8684

tests/baselines/reference/arraySigChecking.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ tests/cases/compiler/arraySigChecking.ts(18,5): error TS2322: Type 'void[]' is n
44
tests/cases/compiler/arraySigChecking.ts(22,1): error TS2322: Type 'number[][]' is not assignable to type 'number[][][]'.
55
Type 'number[]' is not assignable to type 'number[][]'.
66
Type 'number' is not assignable to type 'number[]'.
7-
Property 'length' is missing in type 'Number'.
87

98

109
==== tests/cases/compiler/arraySigChecking.ts (3 errors) ====
@@ -39,7 +38,6 @@ tests/cases/compiler/arraySigChecking.ts(22,1): error TS2322: Type 'number[][]'
3938
!!! error TS2322: Type 'number[][]' is not assignable to type 'number[][][]'.
4039
!!! error TS2322: Type 'number[]' is not assignable to type 'number[][]'.
4140
!!! error TS2322: Type 'number' is not assignable to type 'number[]'.
42-
!!! error TS2322: Property 'length' is missing in type 'Number'.
4341

4442
function isEmpty(l: { length: number }) {
4543
return l.length === 0;

tests/baselines/reference/arrayTypeOfTypeOf.errors.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,5): error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
2-
Property 'isArray' is missing in type 'Number'.
32
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,22): error TS1005: '=' expected.
43
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(6,30): error TS1109: Expression expected.
54
tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(7,5): error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
@@ -16,7 +15,6 @@ tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts(
1615
var xs3: typeof Array<number>;
1716
~~~
1817
!!! error TS2322: Type 'number' is not assignable to type 'ArrayConstructor'.
19-
!!! error TS2322: Property 'isArray' is missing in type 'Number'.
2018
~
2119
!!! error TS1005: '=' expected.
2220
~

tests/baselines/reference/assignmentCompat1.errors.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ tests/cases/compiler/assignmentCompat1.ts(4,1): error TS2322: Type '{ [index: st
33
tests/cases/compiler/assignmentCompat1.ts(6,1): error TS2322: Type '{ [index: number]: any; }' is not assignable to type '{ one: number; }'.
44
Property 'one' is missing in type '{ [index: number]: any; }'.
55
tests/cases/compiler/assignmentCompat1.ts(8,1): error TS2322: Type 'string' is not assignable to type '{ [index: string]: any; }'.
6-
Index signature is missing in type 'String'.
76
tests/cases/compiler/assignmentCompat1.ts(10,1): error TS2322: Type 'boolean' is not assignable to type '{ [index: number]: any; }'.
8-
Index signature is missing in type 'Boolean'.
97

108

119
==== tests/cases/compiler/assignmentCompat1.ts (4 errors) ====
@@ -25,11 +23,9 @@ tests/cases/compiler/assignmentCompat1.ts(10,1): error TS2322: Type 'boolean' is
2523
y = "foo"; // Error
2624
~
2725
!!! error TS2322: Type 'string' is not assignable to type '{ [index: string]: any; }'.
28-
!!! error TS2322: Index signature is missing in type 'String'.
2926
z = "foo"; // OK, string has numeric indexer
3027
z = false; // Error
3128
~
3229
!!! error TS2322: Type 'boolean' is not assignable to type '{ [index: number]: any; }'.
33-
!!! error TS2322: Index signature is missing in type 'Boolean'.
3430

3531

tests/baselines/reference/assignmentCompatWithCallSignatures4.errors.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
33
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
44
Types of parameters 'arg2' and 'arg2' are incompatible.
55
Type '{ foo: number; }' is not assignable to type 'Base'.
6+
Types of property 'foo' are incompatible.
7+
Type 'number' is not assignable to type 'string'.
68
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts(53,9): error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
79
Types of parameters 'y' and 'y' are incompatible.
810
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
11+
Types of parameters 'arg2' and 'arg2' are incompatible.
12+
Type 'Base' is not assignable to type '{ foo: number; }'.
13+
Types of property 'foo' are incompatible.
14+
Type 'string' is not assignable to type 'number'.
915

1016

1117
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts (2 errors) ====
@@ -67,11 +73,17 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
6773
!!! error TS2322: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
6874
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
6975
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
76+
!!! error TS2322: Types of property 'foo' are incompatible.
77+
!!! error TS2322: Type 'number' is not assignable to type 'string'.
7078
b8 = a8; // error, { foo: number } and Base are incompatible
7179
~~
7280
!!! error TS2322: Type '(x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type '<T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
7381
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
7482
!!! error TS2322: Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
83+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
84+
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
85+
!!! error TS2322: Types of property 'foo' are incompatible.
86+
!!! error TS2322: Type 'string' is not assignable to type 'number'.
7587

7688

7789
var b10: <T extends Derived>(...x: T[]) => T;

tests/baselines/reference/assignmentCompatWithConstructSignatures4.errors.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,31 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
33
Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
44
Types of parameters 'arg2' and 'arg2' are incompatible.
55
Type '{ foo: number; }' is not assignable to type 'Base'.
6+
Types of property 'foo' are incompatible.
7+
Type 'number' is not assignable to type 'string'.
68
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(53,9): error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
79
Types of parameters 'y' and 'y' are incompatible.
810
Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
11+
Types of parameters 'arg2' and 'arg2' are incompatible.
12+
Type 'Base' is not assignable to type '{ foo: number; }'.
13+
Types of property 'foo' are incompatible.
14+
Type 'string' is not assignable to type 'number'.
915
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(77,9): error TS2322: Type 'new <T>(x: (a: T) => T) => T[]' is not assignable to type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }'.
1016
Types of parameters 'x' and 'x' are incompatible.
1117
Type '(a: any) => any' is not assignable to type '{ new (a: number): number; new (a?: number): number; }'.
1218
Type '(a: any) => any' provides no match for the signature 'new (a: number): number'
1319
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(78,9): error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => T[]'.
1420
Types of parameters 'x' and 'x' are incompatible.
1521
Type '{ new (a: number): number; new (a?: number): number; }' is not assignable to type '(a: any) => any'.
22+
Type '{ new (a: number): number; new (a?: number): number; }' provides no match for the signature '(a: any): any'
1623
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(81,9): error TS2322: Type 'new <T>(x: (a: T) => T) => any[]' is not assignable to type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }'.
1724
Types of parameters 'x' and 'x' are incompatible.
1825
Type '(a: any) => any' is not assignable to type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }'.
1926
Type '(a: any) => any' provides no match for the signature 'new <T extends Derived>(a: T): T'
2027
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts(82,9): error TS2322: Type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => any[]'.
2128
Types of parameters 'x' and 'x' are incompatible.
2229
Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' is not assignable to type '(a: any) => any'.
30+
Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' provides no match for the signature '(a: any): any'
2331

2432

2533
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts (6 errors) ====
@@ -81,11 +89,17 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
8189
!!! error TS2322: Type '(arg2: { foo: number; }) => any' is not assignable to type '(arg2: Base) => Derived'.
8290
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
8391
!!! error TS2322: Type '{ foo: number; }' is not assignable to type 'Base'.
92+
!!! error TS2322: Types of property 'foo' are incompatible.
93+
!!! error TS2322: Type 'number' is not assignable to type 'string'.
8494
b8 = a8; // error
8595
~~
8696
!!! error TS2322: Type 'new (x: (arg: Base) => Derived, y: (arg2: Base) => Derived) => (r: Base) => Derived' is not assignable to type 'new <T extends Base, U extends Derived>(x: (arg: T) => U, y: (arg2: { foo: number; }) => U) => (r: T) => U'.
8797
!!! error TS2322: Types of parameters 'y' and 'y' are incompatible.
8898
!!! error TS2322: Type '(arg2: Base) => Derived' is not assignable to type '(arg2: { foo: number; }) => any'.
99+
!!! error TS2322: Types of parameters 'arg2' and 'arg2' are incompatible.
100+
!!! error TS2322: Type 'Base' is not assignable to type '{ foo: number; }'.
101+
!!! error TS2322: Types of property 'foo' are incompatible.
102+
!!! error TS2322: Type 'string' is not assignable to type 'number'.
89103

90104

91105
var b10: new <T extends Derived>(...x: T[]) => T;
@@ -120,6 +134,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
120134
!!! error TS2322: Type '{ new (x: { new (a: number): number; new (a?: number): number; }): number[]; new (x: { new (a: boolean): boolean; new (a?: boolean): boolean; }): boolean[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => T[]'.
121135
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
122136
!!! error TS2322: Type '{ new (a: number): number; new (a?: number): number; }' is not assignable to type '(a: any) => any'.
137+
!!! error TS2322: Type '{ new (a: number): number; new (a?: number): number; }' provides no match for the signature '(a: any): any'
123138

124139
var b17: new <T>(x: (a: T) => T) => any[];
125140
a17 = b17; // error
@@ -133,6 +148,7 @@ tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignme
133148
!!! error TS2322: Type '{ new (x: { new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }): any[]; new (x: { new <T extends Derived2>(a: T): T; new <T extends Base>(a: T): T; }): any[]; }' is not assignable to type 'new <T>(x: (a: T) => T) => any[]'.
134149
!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
135150
!!! error TS2322: Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' is not assignable to type '(a: any) => any'.
151+
!!! error TS2322: Type '{ new <T extends Derived>(a: T): T; new <T extends Base>(a: T): T; }' provides no match for the signature '(a: any): any'
136152
}
137153

138154
module WithGenericSignaturesInBaseType {

tests/baselines/reference/assignmentCompatability16.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability16.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: any[]; }'.
22
Types of property 'one' are incompatible.
33
Type 'number' is not assignable to type 'any[]'.
4-
Property 'length' is missing in type 'Number'.
54

65

76
==== tests/cases/compiler/assignmentCompatability16.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability16.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ one: any[]; }'.
1918
!!! error TS2322: Types of property 'one' are incompatible.
20-
!!! error TS2322: Type 'number' is not assignable to type 'any[]'.
21-
!!! error TS2322: Property 'length' is missing in type 'Number'.
19+
!!! error TS2322: Type 'number' is not assignable to type 'any[]'.

tests/baselines/reference/assignmentCompatability17.errors.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
tests/cases/compiler/assignmentCompatability17.ts(9,1): error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: any[]; }'.
22
Types of property 'two' are incompatible.
33
Type 'string' is not assignable to type 'any[]'.
4-
Property 'push' is missing in type 'String'.
54

65

76
==== tests/cases/compiler/assignmentCompatability17.ts (1 errors) ====
@@ -17,5 +16,4 @@ tests/cases/compiler/assignmentCompatability17.ts(9,1): error TS2322: Type 'inte
1716
~~~~~~~~~~~~~~~~~~~~
1817
!!! error TS2322: Type 'interfaceWithPublicAndOptional<number, string>' is not assignable to type '{ two: any[]; }'.
1918
!!! error TS2322: Types of property 'two' are incompatible.
20-
!!! error TS2322: Type 'string' is not assignable to type 'any[]'.
21-
!!! error TS2322: Property 'push' is missing in type 'String'.
19+
!!! error TS2322: Type 'string' is not assignable to type 'any[]'.

0 commit comments

Comments
 (0)