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

Unified Diff: pkg/front_end/testcases/inference/block_bodied_lambdas_async_mix_of_values_and_futures.dart.direct.expect

Issue 2976283002: Update expectations. (Closed)
Patch Set: Update compile.status. Created 3 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
Index: pkg/front_end/testcases/inference/block_bodied_lambdas_async_mix_of_values_and_futures.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_async_mix_of_values_and_futures.dart.direct.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_async_mix_of_values_and_futures.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..9b331851bee09a38c323de8ab24b3bcf3df13989
--- /dev/null
+++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_async_mix_of_values_and_futures.dart.direct.expect
@@ -0,0 +1,18 @@
+library test;
+import self as self;
+import "dart:math" as math;
+import "dart:async" as asy;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ dynamic f = () → dynamic async {
+ if(math::Random::•().nextBool()) {
+ return asy::Future::value<core::int>(1);
+ }
+ else {
+ return 2.0;
+ }
+ };
+ asy::Future<core::num> g = f.call();
+ asy::Future<core::int> h = f.call();
+}

Powered by Google App Engine
This is Rietveld 408576698