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

Unified Diff: test/subscription_stream_test.dart

Issue 2161283002: Fix Dart 1.17 strong-mode warnings. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 years, 5 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 | « test/stream_zip_test.dart ('k') | test/typed_wrapper/future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/subscription_stream_test.dart
diff --git a/test/subscription_stream_test.dart b/test/subscription_stream_test.dart
index 0d1870b2cf52cbbb87d749e62f75b22f5e8419f2..699babeea0375638aa49668e8948068e24a72a80 100644
--- a/test/subscription_stream_test.dart
+++ b/test/subscription_stream_test.dart
@@ -22,7 +22,7 @@ main() {
var stream = createStream();
var skips = 0;
var completer = new Completer();
- var subscription;
+ StreamSubscription<int> subscription;
subscription = stream.listen((value) {
++skips;
expect(value, skips);
@@ -168,7 +168,7 @@ Stream<int> createErrorStream([Completer onCancel]) async* {
await flushMicrotasks();
yield 2;
await flushMicrotasks();
- yield* new Future.error("To err is divine!").asStream();
+ yield* new Future<int>.error("To err is divine!").asStream();
await flushMicrotasks();
yield 4;
await flushMicrotasks();
« no previous file with comments | « test/stream_zip_test.dart ('k') | test/typed_wrapper/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698