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

Unified Diff: pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect

Issue 2949753002: Print static types of conditional expressions. (Closed)
Patch Set: Created 3 years, 6 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/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect
index f0bfb805b45d780a92d656422ad09fb5637f8049..ba354cbd32f7529bd256a4464f0b56437d9bbafb 100644
--- a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect
@@ -14,13 +14,13 @@ class MyFuture<T extends core::Object> extends core::Object implements asy::Futu
}
static method test() → void {
asy::Future<core::bool> f;
- asy::Future<core::int> t1 = f.{asy::Future::then}<core::int>((core::bool x) → asy::Future<core::int> async => x ? 2 : await asy::Future::value<core::int>(3));
+ asy::Future<core::int> t1 = f.{asy::Future::then}<core::int>((core::bool x) → asy::Future<core::int> async => x ?{core::int} 2 : await asy::Future::value<core::int>(3));
asy::Future<core::int> t2 = f.{asy::Future::then}<core::int>((core::bool x) → asy::Future<core::int> async {
- return await x ? 2 : asy::Future::value<core::int>(3);
+ return await x ?{core::Object} 2 : asy::Future::value<core::int>(3);
});
- asy::Future<core::int> t5 = f.{asy::Future::then}<core::int>((core::bool x) → core::Object => x ? 2 : asy::Future::value<core::int>(3));
+ asy::Future<core::int> t5 = f.{asy::Future::then}<core::int>((core::bool x) → core::Object => x ?{core::Object} 2 : asy::Future::value<core::int>(3));
asy::Future<core::int> t6 = f.{asy::Future::then}<core::int>((core::bool x) → asy::FutureOr<core::int> {
- return x ? 2 : asy::Future::value<core::int>(3);
+ return x ?{core::Object} 2 : asy::Future::value<core::int>(3);
});
}
static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698