Increase the strictness of our requiring explicit types (#7585)

...now that we have generic methods, their types need to be specified too.
This commit is contained in:
Ian Hickson
2017-01-23 01:04:31 -08:00
committed by GitHub
parent 99822088a7
commit 63aa1397a3
63 changed files with 134 additions and 127 deletions

View File

@@ -46,7 +46,7 @@ class TestAssetBundle extends AssetBundle {
}
@override
Future<dynamic> loadStructuredData(String key, Future<dynamic> parser(String value)) async {
Future<dynamic> loadStructuredData<T>(String key, Future<T> parser(String value)) async {
return parser(await loadString(key));
}