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

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

Issue 2965023002: Fix inference test expectations for generic function types. (Closed)
Patch Set: Created 3 years, 5 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 e66d2333530e2d22c1b95586b2e2ae3fad4b35c2..acb151f23a1efbc5c8cfee698fa9c6ee0c1e13b2 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=(main::f::T) -> main::f::T*/ v1 = f;
+ var /*@type=<T extends Object>(main::f::T) -> main::f::T*/ v1 = f;
v1 = <S> /*@returnType=main::::S*/ (/*@type=main::::S*/ x) => x;
}
{
List<T> f<T>(T x) => null;
- var /*@type=(main::f::T) -> List<main::f::T>*/ v2 = f;
+ var /*@type=<T extends Object>(main::f::T) -> List<main::f::T>*/ v2 = f;
v2 = <S> /*@returnType=List<main::::S>*/
(/*@type=main::::S*/ x) => /*@typeArgs=main::::S*/ [x];
Iterable<int> r = /*@typeArgs=int*/ v2(42);

Powered by Google App Engine
This is Rietveld 408576698