Index: pkg/front_end/testcases/inference/block_bodied_lambdas_async_all_returns_are_values.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_async_all_returns_are_values.dart.direct.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_async_all_returns_are_values.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ff7dee686a36fd04a1cb6ebd19949a38f23f5449 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_async_all_returns_are_values.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 1; |
+ } |
+ else { |
+ return 2.0; |
+ } |
+ }; |
+ asy::Future<core::num> g = f.call(); |
+ asy::Future<core::int> h = f.call(); |
+} |