| // Copyright (c) 2018, 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. |
| |
| /// @assertion Further, the interfaces B and C must be compatible. The on clause |
| /// introduces a synthetic interface combining B and C, call it A$super, which is |
| /// equivalent to the interface of a class declaration of the form: |
| /// abstract class A$super<X extends S, Y extends T> implements B, C {} |
| /// It is a compile-time error for the mixin declaration if the class declaration |
| /// above would not be valid. |
| /// |
| /// @description Checks that it is a compile-time error for the mixin declaration |
| /// if the interfaces B and C are not compatible. |
| /// @issue 34713 |
| /// @author ngl@unipro.ru |
| /// @author sgrekhov@unipro.ru |
| |
| class B { |
| int get n => 1; |
| } |
| class C { |
| double get n => 2.0; |
| } |
| |
| mixin M on B, C { |
| // ^ |
| // [analyzer] unspecified |
| // [cfe] unspecified |
| } |
| |
| main() { |
| } |