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>[]); |