| Index: pkg/front_end/testcases/inference/future_then_conditional_5.dart
|
| diff --git a/pkg/front_end/testcases/inference/future_then_conditional_5.dart b/pkg/front_end/testcases/inference/future_then_conditional_5.dart
|
| index 71bb2f58473112c454bac85c00842e03226a7a54..c615aec4e78b5cd92e91d1f760694bd6d7b99663 100644
|
| --- a/pkg/front_end/testcases/inference/future_then_conditional_5.dart
|
| +++ b/pkg/front_end/testcases/inference/future_then_conditional_5.dart
|
| @@ -16,27 +16,21 @@ class MyFuture<T> implements Future<T> {
|
|
|
| void main() {
|
| Future<bool> f;
|
| - Future<int> t1 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=bool*/ x) async =>
|
| - /*@promotedType=none*/ x ? 2 : await new MyFuture<int>.value(3));
|
| - Future<int> t2 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| - /*@returnType=Future<int>*/ (/*@type=bool*/ x) async {
|
| - return /*info:DOWN_CAST_COMPOSITE*/ await /*@promotedType=none*/ x
|
| + Future<int> t1 = f. /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=bool*/ x) async =>
|
| + x ? 2 : await new MyFuture<int>.value(3));
|
| + Future<int> t2 = f. /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| + /*@returnType=Future<int>*/ (/*@type=bool*/ x) async {
|
| + return /*info:DOWN_CAST_COMPOSITE*/ await x
|
| ? 2
|
| : new MyFuture<int>.value(3);
|
| });
|
| - Future<int> t5 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| - /*info:INFERRED_TYPE_CLOSURE,error:INVALID_CAST_FUNCTION_EXPR*/
|
| - /*@returnType=Object*/ (/*@type=bool*/ x) =>
|
| - /*@promotedType=none*/ x ? 2 : new MyFuture<int>.value(3));
|
| - Future<int> t6 = /*@promotedType=none*/ f
|
| - . /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| - /*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) {
|
| - return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x
|
| - ? 2
|
| - : new MyFuture<int>.value(3);
|
| + Future<int> t5 = f. /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| + /*info:INFERRED_TYPE_CLOSURE,error:INVALID_CAST_FUNCTION_EXPR*/
|
| + /*@returnType=Object*/ (/*@type=bool*/ x) =>
|
| + x ? 2 : new MyFuture<int>.value(3));
|
| + Future<int> t6 = f. /*@typeArgs=int*/ /*@target=Future::then*/ then(
|
| + /*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) {
|
| + return /*info:DOWN_CAST_COMPOSITE*/ x ? 2 : new MyFuture<int>.value(3);
|
| });
|
| }
|
|
|