Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: lib/src/priority_queue.dart

Issue 1817463002: Finish @nex3's strong-mode fixes in package:collection and test it in Travis (Closed) Base URL: https://github.com/ochafik/collection.git@master
Patch Set: revert _throw (now generic) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/priority_queue.dart
diff --git a/lib/src/priority_queue.dart b/lib/src/priority_queue.dart
index 64fd84f03bea8a0dae8124a07f7b03ccf2a43bbf..2367428de607b20c5b196a96e9f747b50e49c845 100644
--- a/lib/src/priority_queue.dart
+++ b/lib/src/priority_queue.dart
@@ -121,7 +121,7 @@ class HeapPriorityQueue<E> implements PriorityQueue<E> {
static const int _INITIAL_CAPACITY = 7;
/// The comparison being used to compare the priority of elements.
- final Comparator comparison;
+ final Comparator<E> comparison;
/// List implementation of a heap.
List<E> _queue = new List<E>(_INITIAL_CAPACITY);

Powered by Google App Engine
This is Rietveld 408576698