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

Unified Diff: pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.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/infer_types_on_generic_instantiations_3.dart
diff --git a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart
index 389f9f4329bc91cac6e01a0f513a49caf57a5af6..3467d7576af757ed17019522caffcd60780545bf 100644
--- a/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart
+++ b/pkg/front_end/testcases/inference/infer_types_on_generic_instantiations_3.dart
@@ -11,8 +11,8 @@ class A<T> {
}
class B implements A<int> {
- get x => 3;
- get w => /*error:RETURN_OF_INVALID_TYPE*/ "hello";
+ get /*@topType=int*/ x => 3;
+ get /*@topType=int*/ w => /*error:RETURN_OF_INVALID_TYPE*/ "hello";
}
foo() {

Powered by Google App Engine
This is Rietveld 408576698