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

Unified Diff: pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.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_new/infer_assign_to_property_custom.dart
diff --git a/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart
index c014ab68daec92117fae2f3063a7c0a287e8e4c4..af534a0281c206a135a4188f0fc0abd1cba64ce7 100644
--- a/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart
+++ b/pkg/front_end/testcases/inference_new/infer_assign_to_property_custom.dart
@@ -6,8 +6,8 @@
library test;
class A {
- int operator +(other) => 1;
- double operator -(other) => 2.0;
+ int operator +(/*@topType=dynamic*/ other) => 1;
+ double operator -(/*@topType=dynamic*/ other) => 2.0;
}
class B {

Powered by Google App Engine
This is Rietveld 408576698