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