File tree 2 files changed +3
-6
lines changed 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ class JsArray<E> extends JsObject with ListMixin<E> {
357
357
if (index is num && index == index.toInt ()) {
358
358
_checkIndex (index);
359
359
}
360
- return super [index];
360
+ return super [index] as E ;
361
361
}
362
362
363
363
void operator []= (Object index, E value) {
@@ -403,12 +403,12 @@ class JsArray<E> extends JsObject with ListMixin<E> {
403
403
404
404
E removeAt (int index) {
405
405
_checkIndex (index);
406
- return callMethod ('splice' , [index, 1 ])[0 ];
406
+ return callMethod ('splice' , [index, 1 ])[0 ] as E ;
407
407
}
408
408
409
409
E removeLast () {
410
410
if (length == 0 ) throw new RangeError (- 1 );
411
- return callMethod ('pop' );
411
+ return callMethod ('pop' ) as E ;
412
412
}
413
413
414
414
void removeRange (int start, int end) {
Original file line number Diff line number Diff line change 255
255
[warning] Unsound implicit cast from List<dynamic> to Iterable<T> (dart:_internal/iterable.dart, line 1011, col 40)
256
256
[warning] Unsound implicit cast from List<dynamic> to Iterable<T> (dart:_internal/iterable.dart, line 1047, col 35)
257
257
[warning] Unsound implicit cast from List<dynamic> to List<T> (dart:_internal/iterable.dart, line 1129, col 31)
258
- [warning] Unsound implicit cast from dynamic to E (dart:js, line 360, col 12)
259
- [warning] Unsound implicit cast from dynamic to E (dart:js, line 406, col 12)
260
- [warning] Unsound implicit cast from dynamic to E (dart:js, line 411, col 12)
261
258
[warning] Unsound implicit cast from num to T (dart:math, line 85, col 16)
262
259
[warning] Unsound implicit cast from num to T (dart:math, line 120, col 16)
263
260
[warning] Unsound implicit cast from num to T (dart:math/point.dart, line 37, col 25)
You can’t perform that action at this time.
0 commit comments