@@ -1182,36 +1182,50 @@ References:
1182
1182
^^^^^^^^^^^^ [1]
1183
1183
1184
1184
1185
- Error --------------------------------------------------------------------------------------------------- spread.js:75:8
1185
+ Error -------------------------------------------------------------------------------------------------- spread.js:57:22
1186
+
1187
+ Cannot spread non-tuple (read-only array type [1]) into tuple type. [tuple-invalid-type-spread]
1188
+
1189
+ spread.js:57:22
1190
+ 57| type ROArraySpread = [...$ReadOnlyArray<mixed>]; // ERROR
1191
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
1192
+
1193
+ References:
1194
+ spread.js:57:26
1195
+ 57| type ROArraySpread = [...$ReadOnlyArray<mixed>]; // ERROR
1196
+ ^^^^^^^^^^^^^^^^^^^^^ [1]
1197
+
1198
+
1199
+ Error --------------------------------------------------------------------------------------------------- spread.js:87:8
1186
1200
1187
1201
Cannot cast array literal to `WithTail` because number [1] is incompatible with number literal `3` [2] in index 2.
1188
1202
[incompatible-cast]
1189
1203
1190
- spread.js:75 :8
1191
- 75 | [1, 2, 66] as WithTail<[2, 3]>; // ERROR
1204
+ spread.js:87 :8
1205
+ 87 | [1, 2, 66] as WithTail<[2, 3]>; // ERROR
1192
1206
^^ [1]
1193
1207
1194
1208
References:
1195
- spread.js:75 :28
1196
- 75 | [1, 2, 66] as WithTail<[2, 3]>; // ERROR
1209
+ spread.js:87 :28
1210
+ 87 | [1, 2, 66] as WithTail<[2, 3]>; // ERROR
1197
1211
^ [2]
1198
1212
1199
1213
1200
- Error --------------------------------------------------------------------------------------------------- spread.js:78 :1
1214
+ Error --------------------------------------------------------------------------------------------------- spread.js:90 :1
1201
1215
1202
1216
Cannot call `f` because `T` [1] is underconstrained by call of `f` [2]. Either add explicit type arguments or cast the
1203
1217
expression to your expected type. [underconstrained-implicit-instantiation]
1204
1218
1205
- spread.js:78 :1
1206
- 78 | f([1, 2, 3]); // ERROR: annotation required - reversal not yet implemented
1219
+ spread.js:90 :1
1220
+ 90 | f([1, 2, 3]); // ERROR: annotation required - reversal not yet implemented
1207
1221
^
1208
1222
1209
1223
References:
1210
- spread.js:77 :20
1211
- 77 | declare function f<T>(xs: [1, ...T]): void;
1224
+ spread.js:89 :20
1225
+ 89 | declare function f<T>(xs: [1, ...T]): void;
1212
1226
^ [1]
1213
- spread.js:78 :1
1214
- 78 | f([1, 2, 3]); // ERROR: annotation required - reversal not yet implemented
1227
+ spread.js:90 :1
1228
+ 90 | f([1, 2, 3]); // ERROR: annotation required - reversal not yet implemented
1215
1229
^^^^^^^^^^^^ [2]
1216
1230
1217
1231
@@ -1984,4 +1998,4 @@ References:
1984
1998
1985
1999
1986
2000
1987
- Found 124 errors
2001
+ Found 125 errors
0 commit comments