Index: pkg/front_end/testcases/inference/future_then_conditional_4.dart |
diff --git a/pkg/front_end/testcases/inference/future_then_conditional_4.dart b/pkg/front_end/testcases/inference/future_then_conditional_4.dart |
index 744053dbf826984e64ffffe4ab83f0ddf1ecb0fc..5a9995d2cbbd4f9cf5b1ae30277645bd65a57e67 100644 |
--- a/pkg/front_end/testcases/inference/future_then_conditional_4.dart |
+++ b/pkg/front_end/testcases/inference/future_then_conditional_4.dart |
@@ -16,21 +16,25 @@ class MyFuture<T> implements Future<T> { |
void main() { |
MyFuture<bool> f; |
- MyFuture<int> t1 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then( |
- /*@returnType=Future<int>*/ (/*@type=bool*/ x) async => |
- /*@promotedType=none*/ x ? 2 : await new MyFuture<int>.value(3)); |
- MyFuture<int> t2 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then( |
- /*@returnType=Future<int>*/ (/*@type=bool*/ x) async { |
+ 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 MyFuture<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 MyFuture<int>.value(3); |
}); |
- MyFuture<int> t5 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then( |
- /*info:INFERRED_TYPE_CLOSURE,error:INVALID_CAST_FUNCTION_EXPR*/ |
- /*@returnType=Object*/ (/*@type=bool*/ x) => |
- /*@promotedType=none*/ x ? 2 : new MyFuture<int>.value(3)); |
- MyFuture<int> t6 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then( |
- /*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) { |
+ 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 MyFuture<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 MyFuture<int>.value(3); |