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

Side by Side Diff: pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect

Issue 2946273002: Implement override-based type inference for instance methods. (Closed)
Patch Set: Created 3 years, 6 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
1 library test; 1 library test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:async" as asy; 4 import "dart:async" as asy;
5 5
6 class MyFuture<T extends core::Object> extends core::Object implements asy::Futu re<self::MyFuture::T> { 6 class MyFuture<T extends core::Object> extends core::Object implements asy::Futu re<self::MyFuture::T> {
7 constructor •() → void 7 constructor •() → void
8 : super core::Object::•() {} 8 : super core::Object::•() {}
9 constructor value(dynamic x) → void 9 constructor value(dynamic x) → void
10 : super core::Object::•() {} 10 : super core::Object::•() {}
11 abstract method noSuchMethod(dynamic invocation) → dynamic; 11 abstract method noSuchMethod(core::Invocation 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> 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; 13 return null;
14 } 14 }
15 static method g1(core::bool x) → asy::Future<core::int> async { 15 static method g1(core::bool x) → asy::Future<core::int> async {
16 return x ?{core::Object} 42 : asy::Future::value<core::int>(42); 16 return x ?{core::Object} 42 : asy::Future::value<core::int>(42);
17 } 17 }
18 static method g2(core::bool x) → asy::Future<core::int> async 18 static method g2(core::bool x) → asy::Future<core::int> async
19 return x ?{core::Object} 42 : asy::Future::value<core::int>(42); 19 return x ?{core::Object} 42 : asy::Future::value<core::int>(42);
20 static method g3(core::bool x) → asy::Future<core::int> async { 20 static method g3(core::bool x) → asy::Future<core::int> async {
21 core::Object y = x ?{core::Object} 42 : asy::Future::value<core::int>(42); 21 core::Object y = x ?{core::Object} 42 : asy::Future::value<core::int>(42);
22 return y; 22 return y;
23 } 23 }
24 static method main() → dynamic {} 24 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698