Index: pkg/dev_compiler/test/codegen/language/await_for_test.dart |
diff --git a/pkg/dev_compiler/test/codegen/language/await_for_test.dart b/pkg/dev_compiler/test/codegen/language/await_for_test.dart |
index 8c6f18e94e548d25057acdfeaef70c9a56c0e247..2777900c34f1603062e1623a4c0908f2963bed13 100644 |
--- a/pkg/dev_compiler/test/codegen/language/await_for_test.dart |
+++ b/pkg/dev_compiler/test/codegen/language/await_for_test.dart |
@@ -21,7 +21,7 @@ Stream makeMeAStream() { |
Trace t1 = new Trace(); |
-consumeOne() async { |
+Future consumeOne() async { |
// Equivalent to await for (x in makeMeAStream()) { ... } |
var s = makeMeAStream(); |
var it = new StreamIterator(s); |
@@ -34,7 +34,7 @@ consumeOne() async { |
Trace t2 = new Trace(); |
-consumeTwo() async { |
+Future consumeTwo() async { |
await for (var x in makeMeAStream()) { |
t2.record(x); |
} |
@@ -43,7 +43,7 @@ consumeTwo() async { |
Trace t3 = new Trace(); |
-consumeNested() async { |
+Future consumeNested() async { |
await for (var x in makeMeAStream()) { |
t3.record(x); |
await for (var y in makeMeAStream()) { |
@@ -56,7 +56,7 @@ consumeNested() async { |
Trace t4 = new Trace(); |
-consumeSomeOfInfinite() async { |
+Future consumeSomeOfInfinite() async { |
Jennifer Messerly
2016/09/15 00:33:50
I guess we don't do this automatically because it'
|
int i = 0; |
await for (var x in infiniteStream()) { |
i++; |