More fixes
diff --git a/lib/src/typed_queue.dart b/lib/src/typed_queue.dart
index 93b0a42..df91e35 100644
--- a/lib/src/typed_queue.dart
+++ b/lib/src/typed_queue.dart
@@ -40,6 +40,7 @@
throw UnsupportedError("$this cannot be cast to the desired type.");
}
+ @deprecated
QueueList<T> retype<T>() => cast<T>();
// Queue interface.
@@ -92,7 +93,7 @@
}
E operator [](int index) {
- RangeError.checkValidIndex(index, this, null, this.length);
+ RangeError.checkValidIndex(index, this, null, length);
return _table[(_head + index) & (_table.length - 1)];
}