blob: d00adad6d01b10884d49b6b4a1839a4b1e82e725 [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 syntax separate from class declarations:
/// mixinDeclaration :
/// metadata? 'mixin' identifier typeParameters? ('on' types)?
/// ('implements' types)? '{' mixinMember* '}'
///
/// @description Checks that mixin declaration above is correct.
/// @author ngl@unipro.ru
class B {}
class C extends B {}
mixin M on B, C {}
class A extends C {}
class MA extends A with M {}
main() {
new MA();
}