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

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

Issue 2867253004: Fix annotation of generic method invocations in Fasta inference tests. (Closed)
Patch Set: Created 3 years, 7 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_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 513c17a3b288bf5bd27b83d62fb85a07e1f8668c..ec79ad59cfb767b561e944d158f74e94512396aa 100644
--- a/pkg/front_end/testcases/inference/future_then_conditional_3.dart
+++ b/pkg/front_end/testcases/inference/future_then_conditional_3.dart
@@ -16,20 +16,20 @@ class MyFuture<T> implements Future<T> {
void main() {
MyFuture<bool> f;
- MyFuture<int> t1 = /*@promotedType=none*/ f.then(
+ MyFuture<int> t1 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
/*@returnType=Future<int>*/ (/*@type=bool*/ x) async =>
/*@promotedType=none*/ x ? 2 : await new Future<int>.value(3));
- MyFuture<int> t2 = /*@promotedType=none*/ f
- .then(/*@returnType=Future<int>*/ (/*@type=bool*/ x) async {
+ MyFuture<int> t2 = /*@promotedType=none*/ f. /*@typeArgs=int*/ 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> t5 = /*@promotedType=none*/ f.then(
+ 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 Future<int>.value(3));
- MyFuture<int> t6 = /*@promotedType=none*/ f.then(
+ MyFuture<int> t6 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
/*@returnType=FutureOr<int>*/ (/*@type=bool*/ x) {
return /*info:DOWN_CAST_COMPOSITE*/ /*@promotedType=none*/ x
? 2

Powered by Google App Engine
This is Rietveld 408576698