Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: pkg/front_end/testcases/inference/future_union_async_conditional_deprecated.dart

Issue 2859703004: Re-remove ad hoc Future.then inference. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/future_union_async_conditional_deprecated.dart
diff --git a/pkg/front_end/testcases/inference/future_union_async_conditional_deprecated.dart b/pkg/front_end/testcases/inference/future_union_async_conditional_deprecated.dart
deleted file mode 100644
index c521af542604f7024208ff4196e7dab984ca80e9..0000000000000000000000000000000000000000
--- a/pkg/front_end/testcases/inference/future_union_async_conditional_deprecated.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/*@testedFeatures=inference*/
-library test;
-
-import 'dart:async';
-
-class MyFuture<T> implements Future<T> {
- MyFuture() {}
- MyFuture.value(x) {}
- dynamic noSuchMethod(invocation);
- MyFuture<S> then<S>(dynamic f(T x), {Function onError}) => null;
-}
-
-Future<int> g1(bool x) async {
- return /*info:DOWN_CAST_COMPOSITE*/ x
- ? 42
- : /*@typeArgs=int*/ new Future.value(42);
-}
-
-Future<int> g2(bool x) async =>
- /*info:DOWN_CAST_COMPOSITE*/ x
- ? 42
- : /*@typeArgs=int*/ new Future.value(42);
-Future<int> g3(bool x) async {
- var /*@type=Object*/ y = x ? 42 : /*@typeArgs=dynamic*/ new Future.value(42);
- return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ y;
-}

Powered by Google App Engine
This is Rietveld 408576698