blob: 5ed6b58cb299bc12853dc766e9fe49a7a6d34aa3 [file] [log] [blame]
// 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 A mixin declaration introduces a mixin and an interface, but not a
/// class.
///
/// @description Checks that a mixin declaration introduces an interface and it
/// is a compile error if there is no implementation of the methods declared by
/// the mixin
/// @author sgrekhov@unipro.ru
class C {
String get g => "C.g";
}
mixin M on C {
String get g => "M.g";
}
class MA implements M {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
new MA();
}