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

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

Issue 2867253004: Fix annotation of generic method invocations in Fasta 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/generic_functions_return_typedef.dart
diff --git a/pkg/front_end/testcases/inference/generic_functions_return_typedef.dart b/pkg/front_end/testcases/inference/generic_functions_return_typedef.dart
index 501554d0b93ca356914084900be442ec6069204d..60f28dc5bcb7251ee0434e79322f1b84e02602b7 100644
--- a/pkg/front_end/testcases/inference/generic_functions_return_typedef.dart
+++ b/pkg/front_end/testcases/inference/generic_functions_return_typedef.dart
@@ -9,8 +9,8 @@ typedef void ToValue<T>(T value);
main() {
ToValue<T> f<T>(T x) => null;
- var /*@type=ToValue<int>(int) -> void*/ x = f<int>(42);
- var /*@type=ToValue<int>(int) -> void*/ y = f(42);
+ var /*@type=ToValue<int>(int) -> void*/ x = /*@typeArgs=int*/ f<int>(42);
+ var /*@type=ToValue<int>(int) -> void*/ y = /*@typeArgs=int*/ f(42);
ToValue<int> takesInt = /*@promotedType=none*/ x;
takesInt = /*@promotedType=none*/ y;
}

Powered by Google App Engine
This is Rietveld 408576698