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

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

Issue 2848033002: Don't include parameter names in types, don't use Unicode arrow. (Closed)
Patch Set: Created 3 years, 8 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 5a7d5ee12d441c28c1e465780c5443358ac932b9..8ff534937f2cf927cf0d0833171e51c822a35fad 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 x) → T*/ v1 = f;
+ var /*@type=f(T) -> T*/ v1 = f;
v1 = /*@returnType=S*/ <S>(/*@type=S*/ x) => x;
}
{
List<T> f<T>(T x) => null;
- var /*@type=f(T x) → List<T>*/ v2 = f;
+ var /*@type=f(T) -> List<T>*/ v2 = f;
v2 = /*@returnType=List<S>*/ <S>(/*@type=S*/ x) => /*@typeArgs=S*/ [x];
Iterable<int> r = /*@promotedType=none*/ v2(42);
Iterable<String> s = /*@promotedType=none*/ v2('hello');

Powered by Google App Engine
This is Rietveld 408576698