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

Unified Diff: pkg/front_end/testcases/inference/downwards_inference_on_function_of_t_using_the_t.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/downwards_inference_on_function_of_t_using_the_t.dart
diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_function_of_t_using_the_t.dart b/pkg/front_end/testcases/inference/downwards_inference_on_function_of_t_using_the_t.dart
index 100ce45fa5573543bbddc82a86fec6226ba092ea..4d7d63580102f9a7fc42cab3a05335c597cba1b3 100644
--- a/pkg/front_end/testcases/inference/downwards_inference_on_function_of_t_using_the_t.dart
+++ b/pkg/front_end/testcases/inference/downwards_inference_on_function_of_t_using_the_t.dart
@@ -17,10 +17,12 @@ void main() {
v2 = /*@returnType=List<S>*/ <S>(/*@type=S*/ x) => /*@typeArgs=S*/ [
/*@promotedType=none*/ x
];
- Iterable<int> r = /*@promotedType=none*/ v2(42);
- Iterable<String> s = /*@promotedType=none*/ v2('hello');
- Iterable<List<int>> t = /*@promotedType=none*/ v2(<int>[]);
- Iterable<num> u = /*@promotedType=none*/ v2(42);
- Iterable<num> v = /*@promotedType=none*/ v2<num>(42);
+ Iterable<int> r = /*@promotedType=none*/ /*@typeArgs=int*/ v2(42);
+ Iterable<String>
+ s = /*@promotedType=none*/ /*@typeArgs=String*/ v2('hello');
+ Iterable<List<int>>
+ t = /*@promotedType=none*/ /*@typeArgs=List<int>*/ v2(<int>[]);
+ Iterable<num> u = /*@promotedType=none*/ /*@typeArgs=num*/ v2(42);
+ Iterable<num> v = /*@promotedType=none*/ /*@typeArgs=num*/ v2<num>(42);
}
}

Powered by Google App Engine
This is Rietveld 408576698