| Index: pkg/front_end/testcases/inference/future_union_async_conditional.dart
|
| diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional.dart b/pkg/front_end/testcases/inference/future_union_async_conditional.dart
|
| index 9f54a43390e9d47567f846aaadab5ae98105eafe..ee6e6a82e206cf465de59c469f4f04dc2be48168 100644
|
| --- a/pkg/front_end/testcases/inference/future_union_async_conditional.dart
|
| +++ b/pkg/front_end/testcases/inference/future_union_async_conditional.dart
|
| @@ -15,18 +15,16 @@ class MyFuture<T> implements Future<T> {
|
| }
|
|
|
| Future<int> g1(bool x) async {
|
| - return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x
|
| + return /*info:DOWN_CAST_COMPOSITE*/ x
|
| ? 42
|
| : new /*@typeArgs=int*/ Future.value(42);
|
| }
|
|
|
| Future<int> g2(bool x) async =>
|
| - /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x
|
| + /*info:DOWN_CAST_COMPOSITE*/ x
|
| ? 42
|
| : new /*@typeArgs=int*/ Future.value(42);
|
| Future<int> g3(bool x) async {
|
| - var /*@type=Object*/ y = /*@promotedType=none*/ x
|
| - ? 42
|
| - : new /*@typeArgs=dynamic*/ Future.value(42);
|
| - return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ y;
|
| + var /*@type=Object*/ y = x ? 42 : new /*@typeArgs=dynamic*/ Future.value(42);
|
| + return /*info:DOWN_CAST_COMPOSITE*/ y;
|
| }
|
|
|