| 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];
|
| }
|
|
|