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

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

Issue 2868133002: Fix annotation of promoted parameters 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 8ff534937f2cf927cf0d0833171e51c822a35fad..100ce45fa5573543bbddc82a86fec6226ba092ea 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
@@ -9,12 +9,14 @@ void main() {
{
T f<T>(T x) => null;
var /*@type=f(T) -> T*/ v1 = f;
- v1 = /*@returnType=S*/ <S>(/*@type=S*/ x) => x;
+ v1 = /*@returnType=S*/ <S>(/*@type=S*/ x) => /*@promotedType=none*/ x;
}
{
List<T> f<T>(T x) => null;
var /*@type=f(T) -> List<T>*/ v2 = f;
- v2 = /*@returnType=List<S>*/ <S>(/*@type=S*/ x) => /*@typeArgs=S*/ [x];
+ 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>[]);

Powered by Google App Engine
This is Rietveld 408576698