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

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

Issue 2946273002: Implement override-based type inference for instance methods. (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/generic_methods_do_not_infer_invalid_override_of_generic_method.dart
diff --git a/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart b/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart
index 4364e7fb6a2dd1a3c1f389de01f018b22e15f224..76caea4fd1ea712258be2bbfdcbf993a363a2884 100644
--- a/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart
+++ b/pkg/front_end/testcases/inference/generic_methods_do_not_infer_invalid_override_of_generic_method.dart
@@ -10,7 +10,9 @@ class C {
}
class D extends C {
-/*error:INVALID_METHOD_OVERRIDE*/ m(x) => x;
+/*error:INVALID_METHOD_OVERRIDE*/ /*@topType=dynamic*/ m(
+ /*@topType=dynamic*/ x) =>
+ x;
}
main() {

Powered by Google App Engine
This is Rietveld 408576698