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

Unified Diff: pkg/dev_compiler/test/codegen/language/await_for_test.dart

Issue 2347493002: fix DDC build: some inference failures are reported now (Closed)
Patch Set: Created 4 years, 3 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
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++;

Powered by Google App Engine
This is Rietveld 408576698