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