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/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts(7,5): error TS2418: Type of computed property's value is 'string', which is not assignable to type 'boolean'.
2
-
tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts(8,5): error TS2418: Type of computed property's value is 'number', which is not assignable to type 'boolean'.
1
+
tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts(6,5): error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'.
2
+
Index signatures are incompatible.
3
+
Type 'string | number' is not assignable to type 'boolean'.
4
+
Type 'string' is not assignable to type 'boolean'.
!!! error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'.
16
+
!!! error TS2322: Index signatures are incompatible.
17
+
!!! error TS2322: Type 'string | number' is not assignable to type 'boolean'.
18
+
!!! error TS2322: Type 'string' is not assignable to type 'boolean'.
12
19
[+"foo"]: "",
13
-
~~~~~~~~
14
-
!!! error TS2418: Type of computed property's value is 'string', which is not assignable to type 'boolean'.
15
-
!!! related TS6501 tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts:2:5: The expected type comes from this index signature.
16
20
[+"bar"]: 0
17
-
~~~~~~~~
18
-
!!! error TS2418: Type of computed property's value is 'number', which is not assignable to type 'boolean'.
19
-
!!! related TS6501 tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES5.ts:2:5: The expected type comes from this index signature.
tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts(7,5): error TS2418: Type of computed property's value is 'string', which is not assignable to type 'boolean'.
2
-
tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts(8,5): error TS2418: Type of computed property's value is 'number', which is not assignable to type 'boolean'.
1
+
tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts(6,5): error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'.
2
+
Index signatures are incompatible.
3
+
Type 'string | number' is not assignable to type 'boolean'.
4
+
Type 'string' is not assignable to type 'boolean'.
!!! error TS2322: Type '{ [x: number]: string | number; }' is not assignable to type 'I'.
16
+
!!! error TS2322: Index signatures are incompatible.
17
+
!!! error TS2322: Type 'string | number' is not assignable to type 'boolean'.
18
+
!!! error TS2322: Type 'string' is not assignable to type 'boolean'.
12
19
[+"foo"]: "",
13
-
~~~~~~~~
14
-
!!! error TS2418: Type of computed property's value is 'string', which is not assignable to type 'boolean'.
15
-
!!! related TS6501 tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts:2:5: The expected type comes from this index signature.
16
20
[+"bar"]: 0
17
-
~~~~~~~~
18
-
!!! error TS2418: Type of computed property's value is 'number', which is not assignable to type 'boolean'.
19
-
!!! related TS6501 tests/cases/conformance/es6/computedProperties/computedPropertyNamesContextualType9_ES6.ts:2:5: The expected type comes from this index signature.
0 commit comments