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

Unified Diff: pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.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_methods_downwards_inference_affects_arguments.dart
diff --git a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart
index 2147c2ad994ae19fdc80449668497cfee47c7ad5..e347512ef3490bf828efa60e12cd628e6d21f066 100644
--- a/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart
+++ b/pkg/front_end/testcases/inference/generic_methods_downwards_inference_affects_arguments.dart
@@ -7,7 +7,8 @@ library test;
T f<T>(List<T> s) => null;
main() {
- String x = f(/*@typeArgs=String*/ ['hi']);
+ String x = /*@typeArgs=String*/ f(/*@typeArgs=String*/ ['hi']);
String y =
- f(/*@typeArgs=String*/ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 42]);
+ /*@typeArgs=String*/ f(
+ /*@typeArgs=String*/ [/*error:LIST_ELEMENT_TYPE_NOT_ASSIGNABLE*/ 42]);
}

Powered by Google App Engine
This is Rietveld 408576698