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

Side by Side Diff: pkg/front_end/testcases/inference/future_then_3.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 unified diff | Download patch
OLDNEW
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4 import "dart:async" as asy;
5
6 class MyFuture<T extends core::Object> extends core::Object implements asy::Futu re<self::MyFuture::T> {
7 constructor •() → void
8 : super core::Object::•() {}
9 constructor value(self::MyFuture::T x) → void
10 : super core::Object::•() {}
11 abstract method noSuchMethod(dynamic invocation) → dynamic;
12 method then<S extends core::Object>((self::MyFuture::T) → asy::FutureOr<self:: MyFuture::then::S> f, {core::Function onError = null}) → self::MyFuture<self::My Future::then::S>
13 return null;
14 }
15 static method test() → void {
16 self::MyFuture<dynamic> f;
17 self::MyFuture<core::int> t1 = f.then((dynamic _) → dynamic async => await asy ::Future::value<core::int>(3));
18 self::MyFuture<core::int> t2 = f.then((dynamic _) → dynamic async {
19 return await asy::Future::value<core::int>(3);
20 });
21 self::MyFuture<core::int> t3 = f.then((dynamic _) → dynamic async => 3);
22 self::MyFuture<core::int> t4 = f.then((dynamic _) → dynamic async {
23 return 3;
24 });
25 self::MyFuture<core::int> t5 = f.then((dynamic _) → dynamic => asy::Future::va lue<core::int>(3));
26 self::MyFuture<core::int> t6 = f.then((dynamic _) → dynamic {
27 return asy::Future::value<core::int>(3);
28 });
29 self::MyFuture<core::int> t7 = f.then((dynamic _) → dynamic async => asy::Futu re::value<core::int>(3));
30 self::MyFuture<core::int> t8 = f.then((dynamic _) → dynamic async {
31 return asy::Future::value<core::int>(3);
32 });
33 }
34 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698