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

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

Issue 2949753002: Print static types of conditional expressions. (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(self::MyFuture::T x) → void 9 constructor value(self::MyFuture::T x) → void
10 : super core::Object::•() {} 10 : super core::Object::•() {}
11 abstract method noSuchMethod(dynamic invocation) → dynamic; 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> 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 test() → void { 15 static method test() → void {
16 self::MyFuture<core::bool> f; 16 self::MyFuture<core::bool> f;
17 self::MyFuture<core::int> t1 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::Future<core::int> async => x ? 2 : await asy::Future::value<core::int >(3)); 17 self::MyFuture<core::int> t1 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::Future<core::int> async => x ?{core::int} 2 : await asy::Future::valu e<core::int>(3));
18 self::MyFuture<core::int> t2 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::Future<core::int> async { 18 self::MyFuture<core::int> t2 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::Future<core::int> async {
19 return await x ? 2 : asy::Future::value<core::int>(3); 19 return await x ?{core::Object} 2 : asy::Future::value<core::int>(3);
20 }); 20 });
21 self::MyFuture<core::int> t5 = f.{self::MyFuture::then}<core::int>((core::bool x) → core::Object => x ? 2 : asy::Future::value<core::int>(3)); 21 self::MyFuture<core::int> t5 = f.{self::MyFuture::then}<core::int>((core::bool x) → core::Object => x ?{core::Object} 2 : asy::Future::value<core::int>(3));
22 self::MyFuture<core::int> t6 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::FutureOr<core::int> { 22 self::MyFuture<core::int> t6 = f.{self::MyFuture::then}<core::int>((core::bool x) → asy::FutureOr<core::int> {
23 return x ? 2 : asy::Future::value<core::int>(3); 23 return x ?{core::Object} 2 : asy::Future::value<core::int>(3);
24 }); 24 });
25 } 25 }
26 static method main() → dynamic {} 26 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698