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

Unified Diff: test/class_hierarchy_tester.dart

Issue 2464843002: Fix some strong mode issues. (Closed)
Patch Set: Revert .analysis_options as there are still strong-mode issues Created 4 years, 1 month 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 | « test/class_hierarchy_basic.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/class_hierarchy_tester.dart
diff --git a/test/class_hierarchy_tester.dart b/test/class_hierarchy_tester.dart
index 0b2eb814d00474ddce0437cd1ac8be973cb8380d..d4e04ad95f84a0d460d1a347e6ba0ee8b5e3b2ab 100644
--- a/test/class_hierarchy_tester.dart
+++ b/test/class_hierarchy_tester.dart
@@ -52,7 +52,7 @@ void testClassHierarchyOnProgram(Program program, {bool verbose: false}) {
List<Name> nameList = names.toList();
progress = 0;
for (var classNode in classHierarchy.classes) {
- Iterable<Name> candidateNames = [
+ Iterable<Name> candidateNames = <Iterable<Name>>[
basic.gettersAndCalls[classNode].keys,
basic.setters[classNode].keys,
pickRandom(nameList, 100)
@@ -141,8 +141,8 @@ void testClassHierarchyOnProgram(Program program, {bool verbose: false}) {
var random = new Random(12345);
-List pickRandom(List items, int n) {
- var result = [];
+List/*<T>*/ pickRandom/*<T>*/(List/*<T>*/ items, int n) {
+ var result = /*<T>*/[];
for (int i = 0; i < n; ++i) {
result.add(items[random.nextInt(items.length)]);
}
« no previous file with comments | « test/class_hierarchy_basic.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698