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

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

Issue 2925583003: Adjust expectations for parameterized closures to match front_end behavior. (Closed)
Patch Set: Created 3 years, 6 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 7139558d348c0e87d23ec12b588a0162e5192d26..679d1f88702775fa64b15b5c504356d28d3ea4e8 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,12 @@ void main() {
{
T f<T>(T x) => null;
var /*@type=(T) -> T*/ v1 = f;
- v1 = /*@returnType=S*/ <S>(/*@type=S*/ x) => x;
+ v1 = <S> /*@returnType=S*/ (/*@type=S*/ x) => x;
}
{
List<T> f<T>(T x) => null;
var /*@type=(T) -> List<T>*/ v2 = f;
- v2 = /*@returnType=List<S>*/ <S>(/*@type=S*/ x) => /*@typeArgs=S*/ [x];
+ v2 = <S> /*@returnType=List<S>*/ (/*@type=S*/ x) => /*@typeArgs=S*/ [x];
Iterable<int> r = /*@typeArgs=int*/ v2(42);
Iterable<String> s = /*@typeArgs=String*/ v2('hello');
Iterable<List<int>> t = /*@typeArgs=List<int>*/ v2(<int>[]);

Powered by Google App Engine
This is Rietveld 408576698