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

Unified Diff: lib/src/algorithms.dart

Issue 1883243002: Fix another broken generic type. (Closed) Base URL: git@github.com:dart-lang/collection@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/algorithms.dart
diff --git a/lib/src/algorithms.dart b/lib/src/algorithms.dart
index 629951d4d98c4df6d1650cc21c3f387d2f475916..d8ca1029fe77b4a0427bdc661c8b24cfb5953547 100644
--- a/lib/src/algorithms.dart
+++ b/lib/src/algorithms.dart
@@ -174,7 +174,7 @@ void mergeSort/*<T>*/(List/*<T>*/ list, {int start: 0, int end,
int firstLength = middle - start;
int secondLength = end - middle;
// secondLength is always the same as firstLength, or one greater.
- var scratchSpace = new List<T>(secondLength);
+ var scratchSpace = new List/*<T>*/(secondLength);
_mergeSort(list, compare, middle, end, scratchSpace, 0);
int firstTarget = end - firstLength;
_mergeSort(list, compare, start, middle, list, firstTarget);
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698