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

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

Issue 2941813002: Fix fasta testcase to avoid a super call to an abstract method. (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
« no previous file with comments | « no previous file | pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.direct.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart
diff --git a/pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart b/pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart
index 8b765d651dc535cb38961add7141fc031a726763..a2d7ab6f8708270c30d174c3cf3f4259f2294483 100644
--- a/pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart
+++ b/pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart
@@ -10,8 +10,11 @@ num getNum() => 0;
double getDouble() => 0.0;
abstract class Base<T, U> {
- T operator [](String s);
- void operator []=(String s, U v);
+ T operator [](String s) => /*@target=Base::getValue*/ getValue(s);
+ void operator []=(String s, U v) => /*@target=Base::setValue*/ setValue(s, v);
+
+ T getValue(String s);
+ void setValue(String s, U v);
}
abstract class Test1 extends Base<int, int> {
« no previous file with comments | « no previous file | pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698