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