Index: pkg/front_end/testcases/inference/future_then_conditional.dart |
diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart b/pkg/front_end/testcases/inference/future_then_conditional.dart |
index 7f9b1227967186de5deb55defa5a8bb2d400b1a7..19355558d6e93b86ee9494d2e7ecdb216da0bbda 100644 |
--- a/pkg/front_end/testcases/inference/future_then_conditional.dart |
+++ b/pkg/front_end/testcases/inference/future_then_conditional.dart |
@@ -18,17 +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 Future<int>.value(3)); |
+ /*@promotedType=none*/ x ? 2 : await new Future<int>.value(3)); |
Future<int> t2 = /*@promotedType=none*/ f |
.then(/*@returnType=Future<int>*/ (/*@type=bool*/ x) async { |
- return /*info:DOWN_CAST_COMPOSITE*/ await x ? 2 : new Future<int>.value(3); |
+ return /*info:DOWN_CAST_COMPOSITE*/ await /*@promotedType=none*/ x |
+ ? 2 |
+ : new Future<int>.value(3); |
}); |
Future<int> t5 = /*@promotedType=none*/ f.then( |
/*error:INVALID_CAST_FUNCTION_EXPR*/ |
/*@returnType=Object*/ (/*@type=bool*/ x) => |
- x ? 2 : new Future<int>.value(3)); |
+ /*@promotedType=none*/ x ? 2 : new Future<int>.value(3)); |
Future<int> t6 = /*@promotedType=none*/ f.then( |
/*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) { |
- return /*info:DOWN_CAST_COMPOSITE*/ x ? 2 : new Future<int>.value(3); |
+ return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x |
+ ? 2 |
+ : new Future<int>.value(3); |
}); |
} |