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

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

Issue 2875103002: Exclude function name from function type annotations in front end type 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 66d1bb1ccfb50d5fc7ee1fbb4d18ed4f565513f8..acba6de9ceb065736e5bf13cba01dc3483d3b509 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
@@ -8,12 +8,12 @@ library test;
void main() {
{
T f<T>(T x) => null;
- var /*@type=f(T) -> T*/ v1 = f;
+ var /*@type=(T) -> T*/ v1 = f;
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;
+ var /*@type=(T) -> List<T>*/ v2 = f;
v2 = /*@returnType=List<S>*/ <S>(/*@type=S*/ x) => /*@typeArgs=S*/ [
/*@promotedType=none*/ x
];

Powered by Google App Engine
This is Rietveld 408576698