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

Unified Diff: pkg/front_end/testcases/inference/future_then_4.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_4.dart
diff --git a/pkg/front_end/testcases/inference/future_then_4.dart b/pkg/front_end/testcases/inference/future_then_4.dart
index 1c95e8d4f17f74163730d8ec3a01b601529d9d65..e2757aa3078c403ae86d9c09e3063550639dc439 100644
--- a/pkg/front_end/testcases/inference/future_then_4.dart
+++ b/pkg/front_end/testcases/inference/future_then_4.dart
@@ -16,31 +16,31 @@ class MyFuture<T> implements Future<T> {
void main() {
MyFuture f;
- MyFuture<int> t1 = /*@promotedType=none*/ f.then(
+ MyFuture<int> t1 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
await new MyFuture<int>.value(3));
- MyFuture<int> t2 = /*@promotedType=none*/ f
- .then(/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
+ MyFuture<int> t2 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
+ /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
return await new MyFuture<int>.value(3);
});
- MyFuture<int> t3 = /*@promotedType=none*/ f
- .then(/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async => 3);
- MyFuture<int> t4 = /*@promotedType=none*/ f
- .then(/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
+ MyFuture<int> t3 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
+ /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async => 3);
+ MyFuture<int> t4 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
+ /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
return 3;
});
- MyFuture<int> t5 = /*@promotedType=none*/ f.then(
+ MyFuture<int> t5 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
/*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) =>
new MyFuture<int>.value(3));
- MyFuture<int> t6 = /*@promotedType=none*/ f
- .then(/*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) {
+ MyFuture<int> t6 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
+ /*@returnType=MyFuture<int>*/ (/*@type=dynamic*/ _) {
return new MyFuture<int>.value(3);
});
- MyFuture<int> t7 = /*@promotedType=none*/ f.then(
+ MyFuture<int> t7 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async =>
new MyFuture<int>.value(3));
- MyFuture<int> t8 = /*@promotedType=none*/ f
- .then(/*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
+ MyFuture<int> t8 = /*@promotedType=none*/ f. /*@typeArgs=int*/ then(
+ /*@returnType=Future<int>*/ (/*@type=dynamic*/ _) async {
return new MyFuture<int>.value(3);
});
}
« no previous file with comments | « pkg/front_end/testcases/inference/future_then_3.dart ('k') | pkg/front_end/testcases/inference/future_then_5.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698