Index: pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ee695a66d09fb16a590a032a303232f59845590a |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart.direct.expect |
@@ -0,0 +1,24 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+import "dart:async" as asy; |
+ |
+class MyFuture<T extends core::Object> extends core::Object implements asy::Future<self::MyFuture::T> { |
+ constructor •() → void |
+ : super core::Object::•() {} |
+ constructor value(dynamic x) → void |
+ : super core::Object::•() {} |
+ abstract method noSuchMethod(dynamic invocation) → dynamic; |
+ method then<S extends core::Object>((self::MyFuture::T) → asy::FutureOr<self::MyFuture::then::S> f, {core::Function onError = null}) → self::MyFuture<self::MyFuture::then::S> |
+ return null; |
+} |
+static method g1(core::bool x) → asy::Future<core::int> async { |
+ return x ? 42 : asy::Future::value<dynamic>(42); |
+} |
+static method g2(core::bool x) → asy::Future<core::int> async |
+ return x ? 42 : asy::Future::value<dynamic>(42); |
+static method g3(core::bool x) → asy::Future<core::int> async { |
+ dynamic y = x ? 42 : asy::Future::value<dynamic>(42); |
+ return y; |
+} |
+static method main() → dynamic {} |