Run tests in dart2 mode. (#16675)

* Run tests in dart2 mode.

* Fix type check

* Drop --checked, leave --preview-dart-2

* Remove debugging leftovers.
This commit is contained in:
Alexander Aprelev
2018-04-18 11:24:54 -07:00
committed by GitHub
parent 3a0aabc37b
commit 6bd6897014
2 changed files with 8 additions and 4 deletions

View File

@@ -28,7 +28,8 @@ String validateEnglishLocalizations(File file) {
continue;
final dynamic atResourceValue = bundle[atResourceId];
final Map<String, String> atResource = atResourceValue is Map ? atResourceValue : null;
final Map<String, dynamic> atResource =
atResourceValue is Map<String, dynamic> ? atResourceValue : null;
if (atResource == null) {
errorMessages.writeln('A map value was not specified for $atResourceId');
continue;