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

Unified Diff: pkg/front_end/testcases/inference/infer_binary_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/infer_binary_custom.dart
diff --git a/pkg/front_end/testcases/inference/infer_binary_custom.dart b/pkg/front_end/testcases/inference/infer_binary_custom.dart
index 30e7b6767f8e6798899bcd2dde25907387d800f2..ceb40bb5aa046427d80e64c1b9d56f8ee5fa790c 100644
--- a/pkg/front_end/testcases/inference/infer_binary_custom.dart
+++ b/pkg/front_end/testcases/inference/infer_binary_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;
}
var /*@topType=int*/ v_add = new A() /*@target=A::+*/ + 'foo';

Powered by Google App Engine
This is Rietveld 408576698