blob: e8dda8f6b08635cf3b52356550d1ebc4dad30f1a [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 The mixinMember production allows the same instance or static
/// members that a class would allow, but no constructors (for now).
/// @description Checks that mixin declaration doesn't allow constructors. Test
/// named constructor
/// @author
class I {}
class J {}
class B {}
class C {}
mixin M on B, C implements I, J {
M.named() {}
// [analyzer] unspecified
// [cfe] unspecified
class A implements B, C, I, J {}
class MA extends A with M {}
// ^
// [cfe] unspecified
main() {
new MA();