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

Unified Diff: pkg/front_end/testcases/inference/future_then_conditional_6.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/future_then_conditional_6.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..2d2edc5f84ac243fa888a389130a999d6d36e831
--- /dev/null
+++ b/pkg/front_end/testcases/inference/future_then_conditional_6.dart.direct.expect
@@ -0,0 +1,26 @@
+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(self::MyFuture::T 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 test() → void {
+ asy::Future<core::bool> f;
+ asy::Future<core::int> t1 = f.then((dynamic x) → dynamic async => x ? 2 : await asy::Future::value<core::int>(3));
+ asy::Future<core::int> t2 = f.then((dynamic x) → dynamic async {
+ return await x ? 2 : asy::Future::value<core::int>(3);
+ });
+ asy::Future<core::int> t5 = f.then((dynamic x) → dynamic => x ? 2 : asy::Future::value<core::int>(3));
+ asy::Future<core::int> t6 = f.then((dynamic x) → dynamic {
+ return x ? 2 : asy::Future::value<core::int>(3);
+ });
+}
+static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698