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

Unified Diff: pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.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
« no previous file with comments | « pkg/front_end/testcases/inference/unsafe_block_closure_inference_method_call_implicit_type_param.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart
diff --git a/pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart b/pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart
index 77f2fbcde7083bb5cd0b25a0da631d6059aac218..d7566b75b9bbad5aa171382078a33fb9d8f590dc 100644
--- a/pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart
+++ b/pkg/front_end/testcases/inference/void_return_type_subtypes_dynamic.dart
@@ -16,8 +16,8 @@ void printRunning() {
print("running");
}
-var /*@topType=dynamic*/ x = run<dynamic>(printRunning);
-var /*@topType=dynamic*/ y = /*info:USE_OF_VOID_RESULT, error:TOP_LEVEL_TYPE_ARGUMENTS*/ run(
+var /*@topType=dynamic*/ x = /*@typeArgs=dynamic*/ run<dynamic>(printRunning);
+var /*@topType=dynamic*/ y = /*info:USE_OF_VOID_RESULT, error:TOP_LEVEL_TYPE_ARGUMENTS*/ /*@typeArgs=void*/ run(
printRunning);
main() {
@@ -25,8 +25,9 @@ main() {
print("running");
}
- var /*@type=dynamic*/ x = run<dynamic>(printRunning);
- var /*@type=void*/ y = /*info:USE_OF_VOID_RESULT*/ run(printRunning);
+ var /*@type=dynamic*/ x = /*@typeArgs=dynamic*/ run<dynamic>(printRunning);
+ var /*@type=void*/ y = /*info:USE_OF_VOID_RESULT*/ /*@typeArgs=void*/ run(
+ printRunning);
x = 123;
x = 'hi';
y = /*error:INVALID_ASSIGNMENT*/ 123;
« no previous file with comments | « pkg/front_end/testcases/inference/unsafe_block_closure_inference_method_call_implicit_type_param.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698