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/dynamicNamesErrors.ts(19,5): error TS2711: Subsequent property declarations must have the same type. Property '[c1]' must be of type 'number', but here has type 'string'.
4
4
tests/cases/compiler/dynamicNamesErrors.ts(25,1): error TS2322: Type 'T2' is not assignable to type 'T1'.
5
-
Types of property '1' are incompatible.
5
+
Types of property '"1"' are incompatible.
6
6
Type 'string' is not assignable to type 'number'.
7
7
tests/cases/compiler/dynamicNamesErrors.ts(26,1): error TS2322: Type 'T1' is not assignable to type 'T2'.
8
-
Types of property '1' are incompatible.
8
+
Types of property '"1"' are incompatible.
9
9
Type 'number' is not assignable to type 'string'.
10
10
11
11
@@ -43,10 +43,10 @@ tests/cases/compiler/dynamicNamesErrors.ts(26,1): error TS2322: Type 'T1' is not
43
43
t1 = t2;
44
44
~~
45
45
!!! error TS2322: Type 'T2' is not assignable to type 'T1'.
46
-
!!! error TS2322: Types of property '1' are incompatible.
46
+
!!! error TS2322: Types of property '"1"' are incompatible.
47
47
!!! error TS2322: Type 'string' is not assignable to type 'number'.
48
48
t2 = t1;
49
49
~~
50
50
!!! error TS2322: Type 'T1' is not assignable to type 'T2'.
51
-
!!! error TS2322: Types of property '1' are incompatible.
51
+
!!! error TS2322: Types of property '"1"' are incompatible.
52
52
!!! error TS2322: Type 'number' is not assignable to type 'string'.
0 commit comments