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

Unified Diff: pkg/analyzer/test/src/task/dart_work_manager_test.dart

Issue 2357553003: Fix newly introduced errors and warnings (Closed)
Patch Set: Created 4 years, 3 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: pkg/analyzer/test/src/task/dart_work_manager_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_work_manager_test.dart b/pkg/analyzer/test/src/task/dart_work_manager_test.dart
index 84f3f6332cc5db2ad431c0aa8d9ec73da58beefa..12388d086ccf26360bd2272d085eaf6cadfe95b5 100644
--- a/pkg/analyzer/test/src/task/dart_work_manager_test.dart
+++ b/pkg/analyzer/test/src/task/dart_work_manager_test.dart
@@ -357,11 +357,13 @@ class DartWorkManagerTest {
when(context.aboutToComputeResult(anyObject, CONTAINING_LIBRARIES))
.thenInvoke((CacheEntry entry, ResultDescriptor result) {
if (entry.target == part1) {
- entry.setValue(result, <Source>[library1, library2], []);
+ entry.setValue(result as ResultDescriptor<List<Source>>,
+ <Source>[library1, library2], []);
return true;
}
if (entry.target == part2) {
- entry.setValue(result, <Source>[library2], []);
+ entry.setValue(
+ result as ResultDescriptor<List<Source>>, <Source>[library2], []);
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698