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

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

Issue 2918373003: Improve annotation of type variables in type inference tests. (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..4221261e9b5067ae2ef5f2d6fee2b771f25b4fee 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,13 +8,14 @@ library test;
void main() {
{
T f<T>(T x) => null;
- var /*@type=(T) -> T*/ v1 = f;
- v1 = /*@returnType=S*/ <S>(/*@type=S*/ x) => x;
+ var /*@type=(main::f::T) -> main::f::T*/ v1 = f;
+ v1 = /*@returnType=main::::S*/ <S>(/*@type=main::::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];
+ var /*@type=(main::f::T) -> List<main::f::T>*/ v2 = f;
+ v2 = /*@returnType=List<main::::S>*/ <
+ S>(/*@type=main::::S*/ x) => /*@typeArgs=main::::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>[]);
« no previous file with comments | « pkg/front_end/test/fasta/strong.status ('k') | pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698