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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart

Issue 16097013: Make my pkg packages warning-clean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/scheduled_test/lib/src/descriptor/directory_descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
index 5d7b28af15dda5bbe83d09d8290c436d0b3f38a6..f5a2f4ffa83bd71a52f2273dc879a0762120710d 100644
--- a/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart
@@ -85,9 +85,10 @@ class DirectoryDescriptor extends Descriptor implements LoadableDescriptor {
} else {
var remainingPath = split.sublist(1);
if (remainingPath.isEmpty) {
- return matchingEntries.first.read();
+ return (matchingEntries.first as ReadableDescriptor).read();
} else {
- return matchingEntries.first.load(_path.joinAll(remainingPath));
+ return (matchingEntries.first as LoadableDescriptor)
+ .load(_path.joinAll(remainingPath));
}
}
}));

Powered by Google App Engine
This is Rietveld 408576698