Index: pkg/front_end/testcases/inference/future_then_upwards_from_block.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/future_then_upwards_from_block.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_upwards_from_block.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..799443ca09f8cefe7a1c9c11b7fb64c8a9f5761f |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/future_then_upwards_from_block.dart.direct.expect |
@@ -0,0 +1,15 @@ |
+library test; |
+import self as self; |
+import "dart:async" as asy; |
+import "dart:core" as core; |
+ |
+static method test() → dynamic { |
+ asy::Future<core::int> base; |
+ dynamic f = base.then((dynamic x) → dynamic { |
+ return x.==(0); |
+ }); |
+ dynamic g = base.then((dynamic x) → dynamic => x.==(0)); |
+ asy::Future<core::bool> b = f; |
+ b = g; |
+} |
+static method main() → dynamic {} |