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

Unified Diff: test/kernel/regression/super_operator.dart

Issue 2061393004: Implement more super calls. (Closed) Base URL: git@github.com:dart-lang/rasta.git@exports
Patch Set: Renamed file to avoid getting picked up by analyzer. Created 4 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 | « lib/kernel_visitor.dart ('k') | test/kernel/regression/super_operator.dart.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/kernel/regression/super_operator.dart
diff --git a/test/kernel/regression/bad_implicit_super_constructor.dart b/test/kernel/regression/super_operator.dart
similarity index 50%
copy from test/kernel/regression/bad_implicit_super_constructor.dart
copy to test/kernel/regression/super_operator.dart
index e5e539cdb1c57144c4bc50b083a2eadb97f09b45..05fa6cd155f768b45fb1c95dbd60e85697c95217 100644
--- a/test/kernel/regression/bad_implicit_super_constructor.dart
+++ b/test/kernel/regression/super_operator.dart
@@ -3,14 +3,21 @@
// BSD-style license that can be found in the LICENSE.md file.
class A {
- A(this.x);
+ operator + (String s) => null;
+
+ operator [] (i) => null;
+
+ operator []= (i, val) {}
}
class B extends A {
- const B();
+ operator + (String s) => super + ("${s}${s}");
+
+ operator [] (i) => super[i];
+
+ operator []= (i, val) => super[i++] += val;
}
-main() {
- new B();
- const B();
+class Autobianchi {
+ g() => super[0];
}
« no previous file with comments | « lib/kernel_visitor.dart ('k') | test/kernel/regression/super_operator.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698