| Index: tests/kernel/unsorted/super_mixin_test.dart
|
| diff --git a/tests/kernel/unsorted/super_mixin_test.dart b/tests/kernel/unsorted/super_mixin_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..97e53564e89b038551439f649d27abb630c47d72
|
| --- /dev/null
|
| +++ b/tests/kernel/unsorted/super_mixin_test.dart
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +import 'expect.dart';
|
| +
|
| +class Base {
|
| + var field;
|
| +
|
| + method(x) {
|
| + print(x);
|
| + return x;
|
| + }
|
| +
|
| + set setter(x) {
|
| + print(x);
|
| + field = x;
|
| + }
|
| +}
|
| +
|
| +class Mixin {
|
| + method(x) {
|
| + return super.method(x + 'Mixin');
|
| + }
|
| +
|
| + set setter(x) {
|
| + super.setter = x + 'Mixin';
|
| + }
|
| +}
|
| +
|
| +class Sub extends Base with Mixin {
|
| +}
|
| +
|
| +main() {
|
| + var object = new Sub();
|
| + Expect.isTrue(object.method('x') == 'xMixin');
|
| + object.setter = 'y';
|
| + Expect.isTrue(object.field == 'yMixin');
|
| +}
|
|
|