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

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

Issue 2943273002: Implement type inference of getters/setters based on inheritance. (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/conflicts_can_happen.dart
diff --git a/pkg/front_end/testcases/inference/conflicts_can_happen.dart b/pkg/front_end/testcases/inference/conflicts_can_happen.dart
index e4ef920212725a559478a81e2c1d337cadc52ff9..8e7290872910c05276c03f628f231593decaa03e 100644
--- a/pkg/front_end/testcases/inference/conflicts_can_happen.dart
+++ b/pkg/front_end/testcases/inference/conflicts_can_happen.dart
@@ -22,12 +22,12 @@ class B {
}
class C1 implements A, B {
- /*error:INVALID_METHOD_OVERRIDE*/ get a => null;
+ /*error:INVALID_METHOD_OVERRIDE*/ get /*@topType=dynamic*/ a => null;
}
// Still ambiguous
class C2 implements B, A {
- /*error:INVALID_METHOD_OVERRIDE*/ get a => null;
+ /*error:INVALID_METHOD_OVERRIDE*/ get /*@topType=dynamic*/ a => null;
}
main() {}

Powered by Google App Engine
This is Rietveld 408576698