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

@@ -35,7 +35,7 @@ class CoverageCollector {
int pid = process.pid;
int exitCode;
process.exitCode.then((int code) {
process.exitCode.then<Null>((int code) {
exitCode = code;
});

View File

@@ -124,7 +124,7 @@ class FlutterPlatform extends PlatformPlugin {
bool subprocessActive = false;
bool controllerSinkClosed = false;
try {
controller.sink.done.then((_) { controllerSinkClosed = true; });
controller.sink.done.whenComplete(() { controllerSinkClosed = true; });
// Prepare our WebSocket server to talk to the engine subproces.
HttpServer server = await HttpServer.bind(_kHost, 0);
@@ -524,10 +524,10 @@ class _FlutterPlatformStreamSinkWrapper<S> implements StreamSink<S> {
@override
Future<dynamic> close() {
Future.wait(<Future<dynamic>>[
Future.wait<dynamic>(<Future<dynamic>>[
_parent.close(),
_shellProcessClosed,
]).then(
]).then<Null>(
(List<dynamic> value) {
_done.complete();
},