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

Unified Diff: lib/src/util/io.dart

Issue 1960503002: Fix all strong-mode errors and warnings. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: .analysis_options Created 4 years, 7 months 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 | « lib/src/util/forkable_stream.dart ('k') | lib/src/util/stream_queue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/io.dart
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index ab408b60d1921375e8350fece81e184b4630edca..faea6c03e9e6f378000db194a4ac7436ac208e1f 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -163,8 +163,8 @@ String libraryPath(Symbol libraryName, {String packageRoot}) {
///
/// This is necessary for ensuring that our port binding isn't flaky for
/// applications that don't print out the bound port.
-Future getUnusedPort(tryPort(int port)) {
- var value;
+Future/*<T>*/ getUnusedPort/*<T>*/(/*=T*/ tryPort(int port)) {
+ var/*=T*/ value;
return Future.doWhile(() async {
value = await tryPort(await getUnsafeUnusedPort());
return value == null;
« no previous file with comments | « lib/src/util/forkable_stream.dart ('k') | lib/src/util/stream_queue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698