| Index: pkg/front_end/testcases/inference/future_then_conditional_2.dart
|
| diff --git a/pkg/front_end/testcases/inference/future_then_conditional_2.dart b/pkg/front_end/testcases/inference/future_then_conditional_2.dart
|
| index fde2b2f9865ca821a46509caa0f2e00641e2bb0e..46a2bcd2ff0f05cc45dedcfd02d4cb20377d06e2 100644
|
| --- a/pkg/front_end/testcases/inference/future_then_conditional_2.dart
|
| +++ b/pkg/front_end/testcases/inference/future_then_conditional_2.dart
|
| @@ -18,19 +18,21 @@ void main() {
|
| MyFuture<bool> f;
|
| Future<int> t1 = /*@promotedType=none*/ f.then(
|
| /*@returnType=Future<int>*/ (/*@type=bool*/ x) async =>
|
| - x ? 2 : await new MyFuture<int>.value(3));
|
| + /*@promotedType=none*/ x ? 2 : await new MyFuture<int>.value(3));
|
| Future<int> t2 = /*@promotedType=none*/ f
|
| .then(/*@returnType=Future<int>*/ (/*@type=bool*/ x) async {
|
| - return /*info:DOWN_CAST_COMPOSITE*/ await x
|
| + return /*info:DOWN_CAST_COMPOSITE*/ await /*@promotedType=none*/ x
|
| ? 2
|
| : new MyFuture<int>.value(3);
|
| });
|
| Future<int> t5 = /*@promotedType=none*/ f.then(
|
| /*info:INFERRED_TYPE_CLOSURE,error:INVALID_CAST_FUNCTION_EXPR*/
|
| /*@returnType=Object*/ (/*@type=bool*/ x) =>
|
| - x ? 2 : new MyFuture<int>.value(3));
|
| + /*@promotedType=none*/ x ? 2 : new MyFuture<int>.value(3));
|
| Future<int> t6 = /*@promotedType=none*/ f.then(
|
| /*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) {
|
| - return /*info:DOWN_CAST_COMPOSITE*/ x ? 2 : new MyFuture<int>.value(3);
|
| + return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x
|
| + ? 2
|
| + : new MyFuture<int>.value(3);
|
| });
|
| }
|
|
|