blob: 8e62ff476d1ba27a51b0ffa4d1275c3307458aae [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.
// @dart = 2.9
/// @assertion A mixin declaration introduces a mixin and an interface, but not a
/// class.
///
/// @description Checks that a mixin declaration introduces an interface and
/// therefore can be implemented.
/// @author sgrekhov@unipro.ru
class C {
}
mixin M on C {
}
class MA implements M {}
main() {
MA m = new MA();
}