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
tests/cases/compiler/abstractPropertyNegative.ts(19,3): error TS2540: Cannot assign to 'ro' because it is a constant or a read-only property.
10
-
tests/cases/compiler/abstractPropertyNegative.ts(25,5): error TS2416: Property 'num' in type 'WrongTypePropertyImpl' is not assignable to the same property in base type 'number'.
10
+
tests/cases/compiler/abstractPropertyNegative.ts(25,5): error TS2416: Property 'num' in type 'WrongTypePropertyImpl' is not assignable to the same property in base type 'WrongTypeProperty'.
11
11
Type 'string' is not assignable to type 'number'.
12
-
tests/cases/compiler/abstractPropertyNegative.ts(31,9): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl' is not assignable to the same property in base type 'number'.
12
+
tests/cases/compiler/abstractPropertyNegative.ts(31,9): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl' is not assignable to the same property in base type 'WrongTypeAccessor'.
13
13
Type 'string' is not assignable to type 'number'.
14
-
tests/cases/compiler/abstractPropertyNegative.ts(34,5): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl2' is not assignable to the same property in base type 'number'.
14
+
tests/cases/compiler/abstractPropertyNegative.ts(34,5): error TS2416: Property 'num' in type 'WrongTypeAccessorImpl2' is not assignable to the same property in base type 'WrongTypeAccessor'.
15
15
Type 'string' is not assignable to type 'number'.
16
16
tests/cases/compiler/abstractPropertyNegative.ts(38,18): error TS2676: Accessors must both be abstract or non-abstract.
17
17
tests/cases/compiler/abstractPropertyNegative.ts(39,9): error TS2676: Accessors must both be abstract or non-abstract.
Copy file name to clipboardExpand all lines: tests/baselines/reference/apparentTypeSubtyping.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/conformance/types/typeRelationships/apparentType/apparentTypeSubtyping.ts(10,5): error TS2416: Property 'x' in type 'Derived<U>' is not assignable to the same property in base type 'string'.
1
+
tests/cases/conformance/types/typeRelationships/apparentType/apparentTypeSubtyping.ts(10,5): error TS2416: Property 'x' in type 'Derived<U>' is not assignable to the same property in base type 'Base<string>'.
2
2
Type 'String' is not assignable to type 'string'.
3
3
'string' is a primitive, but 'String' is a wrapper object. Prefer using 'string' when possible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/apparentTypeSupertype.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/conformance/types/typeRelationships/apparentType/apparentTypeSupertype.ts(10,5): error TS2416: Property 'x' in type 'Derived<U>' is not assignable to the same property in base type 'string'.
1
+
tests/cases/conformance/types/typeRelationships/apparentType/apparentTypeSupertype.ts(10,5): error TS2416: Property 'x' in type 'Derived<U>' is not assignable to the same property in base type 'Base'.
2
2
Type 'U' is not assignable to type 'string'.
3
3
Type 'String' is not assignable to type 'string'.
4
4
'string' is a primitive, but 'String' is a wrapper object. Prefer using 'string' when possible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/baseClassImprovedMismatchErrors.errors.txt
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,24 @@
1
-
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(8,5): error TS2416: Property 'n' in type 'Derived' is not assignable to the same property in base type 'string | Base'.
1
+
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(8,5): error TS2416: Property 'n' in type 'Derived' is not assignable to the same property in base type 'Base'.
2
2
Type 'string | Derived' is not assignable to type 'string | Base'.
3
3
Type 'Derived' is not assignable to type 'string | Base'.
4
4
Type 'Derived' is not assignable to type 'Base'.
5
5
Types of property 'n' are incompatible.
6
6
Type 'string | Derived' is not assignable to type 'string | Base'.
7
7
Type 'Derived' is not assignable to type 'string | Base'.
8
8
Type 'Derived' is not assignable to type 'Base'.
9
-
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(9,5): error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type '() => number'.
9
+
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(9,5): error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type 'Base'.
10
10
Type '() => string | number' is not assignable to type '() => number'.
11
11
Type 'string | number' is not assignable to type 'number'.
12
12
Type 'string' is not assignable to type 'number'.
13
-
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(14,5): error TS2416: Property 'n' in type 'DerivedInterface' is not assignable to the same property in base type 'string | Base'.
13
+
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(14,5): error TS2416: Property 'n' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
14
14
Type 'string | DerivedInterface' is not assignable to type 'string | Base'.
15
15
Type 'DerivedInterface' is not assignable to type 'string | Base'.
16
16
Type 'DerivedInterface' is not assignable to type 'Base'.
17
17
Types of property 'n' are incompatible.
18
18
Type 'string | DerivedInterface' is not assignable to type 'string | Base'.
19
19
Type 'DerivedInterface' is not assignable to type 'string | Base'.
20
20
Type 'DerivedInterface' is not assignable to type 'Base'.
21
-
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type '() => number'.
21
+
tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
22
22
Type '() => string | number' is not assignable to type '() => number'.
23
23
Type 'string | number' is not assignable to type 'number'.
24
24
Type 'string' is not assignable to type 'number'.
@@ -34,7 +34,7 @@ tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Pro
34
34
class Derived extends Base {
35
35
n: Derived | string;
36
36
~
37
-
!!! error TS2416: Property 'n' in type 'Derived' is not assignable to the same property in base type 'string | Base'.
37
+
!!! error TS2416: Property 'n' in type 'Derived' is not assignable to the same property in base type 'Base'.
38
38
!!! error TS2416: Type 'string | Derived' is not assignable to type 'string | Base'.
39
39
!!! error TS2416: Type 'Derived' is not assignable to type 'string | Base'.
40
40
!!! error TS2416: Type 'Derived' is not assignable to type 'Base'.
@@ -44,7 +44,7 @@ tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Pro
44
44
!!! error TS2416: Type 'Derived' is not assignable to type 'Base'.
45
45
fn() {
46
46
~~
47
-
!!! error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type '() => number'.
47
+
!!! error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type 'Base'.
48
48
!!! error TS2416: Type '() => string | number' is not assignable to type '() => number'.
49
49
!!! error TS2416: Type 'string | number' is not assignable to type 'number'.
50
50
!!! error TS2416: Type 'string' is not assignable to type 'number'.
@@ -54,7 +54,7 @@ tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Pro
54
54
class DerivedInterface implements Base {
55
55
n: DerivedInterface | string;
56
56
~
57
-
!!! error TS2416: Property 'n' in type 'DerivedInterface' is not assignable to the same property in base type 'string | Base'.
57
+
!!! error TS2416: Property 'n' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
58
58
!!! error TS2416: Type 'string | DerivedInterface' is not assignable to type 'string | Base'.
59
59
!!! error TS2416: Type 'DerivedInterface' is not assignable to type 'string | Base'.
60
60
!!! error TS2416: Type 'DerivedInterface' is not assignable to type 'Base'.
@@ -64,7 +64,7 @@ tests/cases/compiler/baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Pro
64
64
!!! error TS2416: Type 'DerivedInterface' is not assignable to type 'Base'.
65
65
fn() {
66
66
~~
67
-
!!! error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type '() => number'.
67
+
!!! error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
68
68
!!! error TS2416: Type '() => string | number' is not assignable to type '() => number'.
69
69
!!! error TS2416: Type 'string | number' is not assignable to type 'number'.
70
70
!!! error TS2416: Type 'string' is not assignable to type 'number'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/classIsSubtypeOfBaseType.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classIsSubtypeOfBaseType.ts(12,5): error TS2416: Property 'foo' in type 'Derived2' is not assignable to the same property in base type '{ bar: string; }'.
1
+
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classIsSubtypeOfBaseType.ts(12,5): error TS2416: Property 'foo' in type 'Derived2' is not assignable to the same property in base type 'Base<{ bar: string; }>'.
2
2
Type '{ bar?: string; }' is not assignable to type '{ bar: string; }'.
3
3
Property 'bar' is optional in type '{ bar?: string; }' but required in type '{ bar: string; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassFunctionOverridesBaseClassAccessor.ts(2,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
2
2
tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassFunctionOverridesBaseClassAccessor.ts(5,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
3
-
tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassFunctionOverridesBaseClassAccessor.ts(11,5): error TS2416: Property 'x' in type 'Derived' is not assignable to the same property in base type 'number'.
3
+
tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassFunctionOverridesBaseClassAccessor.ts(11,5): error TS2416: Property 'x' in type 'Derived' is not assignable to the same property in base type 'Base'.
4
4
Type '() => number' is not assignable to type 'number'.
5
5
tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassFunctionOverridesBaseClassAccessor.ts(11,5): error TS2426: Class 'Base' defines instance member accessor 'x', but extended class 'Derived' defines it as instance member function.
tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts(46,13): error TS2463: A binding pattern parameter cannot be optional in an implementation signature.
36
36
tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts(47,13): error TS2463: A binding pattern parameter cannot be optional in an implementation signature.
37
37
tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts(56,8): error TS2463: A binding pattern parameter cannot be optional in an implementation signature.
38
-
tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts(57,5): error TS2416: Property 'd4' in type 'C4' is not assignable to the same property in base type '({ x, y, z }?: { x: any; y: any; z: any; }) => any'.
38
+
tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts(57,5): error TS2416: Property 'd4' in type 'C4' is not assignable to the same property in base type 'F2'.
39
39
Type '({ x, y, c }: { x: any; y: any; c: any; }) => void' is not assignable to type '({ x, y, z }?: { x: any; y: any; z: any; }) => any'.
40
40
Types of parameters '__0' and '__0' are incompatible.
41
41
Type '{ x: any; y: any; z: any; }' is not assignable to type '{ x: any; y: any; c: any; }'.
!!! error TS2463: A binding pattern parameter cannot be optional in an implementation signature.
160
160
d4({x, y, c}) { }
161
161
~~
162
-
!!! error TS2416: Property 'd4' in type 'C4' is not assignable to the same property in base type '({ x, y, z }?: { x: any; y: any; z: any; }) => any'.
162
+
!!! error TS2416: Property 'd4' in type 'C4' is not assignable to the same property in base type 'F2'.
163
163
!!! error TS2416: Type '({ x, y, c }: { x: any; y: any; c: any; }) => void' is not assignable to type '({ x, y, z }?: { x: any; y: any; z: any; }) => any'.
164
164
!!! error TS2416: Types of parameters '__0' and '__0' are incompatible.
165
165
!!! error TS2416: Type '{ x: any; y: any; z: any; }' is not assignable to type '{ x: any; y: any; c: any; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/elaboratedErrors.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/compiler/elaboratedErrors.ts(11,3): error TS2416: Property 'read' in type 'WorkerFS' is not assignable to the same property in base type 'number'.
1
+
tests/cases/compiler/elaboratedErrors.ts(11,3): error TS2416: Property 'read' in type 'WorkerFS' is not assignable to the same property in base type 'FileSystem'.
2
2
Type 'string' is not assignable to type 'number'.
3
3
tests/cases/compiler/elaboratedErrors.ts(20,1): error TS2322: Type 'Beta' is not assignable to type 'Alpha'.
4
4
Property 'x' is missing in type 'Beta'.
@@ -21,7 +21,7 @@ tests/cases/compiler/elaboratedErrors.ts(25,1): error TS2322: Type 'Alpha' is no
21
21
class WorkerFS implements FileSystem {
22
22
read: string;
23
23
~~~~
24
-
!!! error TS2416: Property 'read' in type 'WorkerFS' is not assignable to the same property in base type 'number'.
24
+
!!! error TS2416: Property 'read' in type 'WorkerFS' is not assignable to the same property in base type 'FileSystem'.
25
25
!!! error TS2416: Type 'string' is not assignable to type 'number'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/genericImplements.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/compiler/genericImplements.ts(9,5): error TS2416: Property 'f' in type 'X' is not assignable to the same property in base type '<T extends A>() => T'.
1
+
tests/cases/compiler/genericImplements.ts(9,5): error TS2416: Property 'f' in type 'X' is not assignable to the same property in base type 'I'.
2
2
Type '<T extends B>() => T' is not assignable to type '<T extends A>() => T'.
3
3
Type 'B' is not assignable to type 'T'.
4
4
@@ -14,7 +14,7 @@ tests/cases/compiler/genericImplements.ts(9,5): error TS2416: Property 'f' in ty
14
14
class X implements I {
15
15
f<T extends B>(): T { return undefined; }
16
16
~
17
-
!!! error TS2416: Property 'f' in type 'X' is not assignable to the same property in base type '<T extends A>() => T'.
17
+
!!! error TS2416: Property 'f' in type 'X' is not assignable to the same property in base type 'I'.
18
18
!!! error TS2416: Type '<T extends B>() => T' is not assignable to type '<T extends A>() => T'.
19
19
!!! error TS2416: Type 'B' is not assignable to type 'T'.
0 commit comments