Fixing STRONG_MODE_COULD_NOT_INFER violations before they fail _analyze targets.
Tested:
TAP train for global presubmit queue
http://test/OCL:136570134:BASE:136561052:1476884314574:451cb522
All failing tests were failing before this change
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136598651
diff --git a/example/basic/basic_example.dart b/example/basic/basic_example.dart
index 6a22807..1690929 100644
--- a/example/basic/basic_example.dart
+++ b/example/basic/basic_example.dart
@@ -37,14 +37,12 @@
var thaiDatesFuture = initializeDateFormatting('th_TH', null);
var germanMessagesFuture = initializeMessages('de_DE');
var thaiMessagesFuture = initializeMessages('th_TH');
- Future
- .wait([
+ Future.wait/*<Future>*/([
germanDatesFuture,
thaiDatesFuture,
germanMessagesFuture,
thaiMessagesFuture
- ])
- .then(program);
+ ]).then(program);
}
// Because the initialization messages return futures we split out the main
diff --git a/lib/date_symbol_data_file.dart b/lib/date_symbol_data_file.dart
index c6c5f86..dbb1dc0 100644
--- a/lib/date_symbol_data_file.dart
+++ b/lib/date_symbol_data_file.dart
@@ -31,8 +31,8 @@
initializeDatePatterns(() =>
new LazyLocaleData(reader2, (x) => x, availableLocalesForDateFormatting));
return initializeIndividualLocaleDateFormatting((symbols, patterns) {
- return Future
- .wait([symbols.initLocale(locale), patterns.initLocale(locale)]);
+ return Future.wait(
+ <Future>[symbols.initLocale(locale), patterns.initLocale(locale)]);
});
}