blob: e643b13fdd4897e7ccff68aaf915c7522eba5093 [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.
* @issue 24767
* @issue 34804
* @compile-error
* @author sgrekhov@unipro.ru
*/
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 {
factory M() = MA<X, Y>;
}
class A implements B, C, I, J {}
class MA<X extends S, Y extends T> extends A with M<X, Y> {}
main() {
new MA();
}