blob: 9ef76db4e53b8af3a4097e8a8ff137d97320c7a4 [file] [log] [blame]
// Copyright (c) 2015, 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 It is also a compile-time error to subclass, mix-in or implement
* an enum or to explicitly instantiate an enum.
* @description Checks that it is compile-time error to mix-in an enum using
* the form S with M1,..., Mn
* @compile-error
* @author sgrekhov@unipro.ru
*/
enum E {a, b, c}
class M1 {
}
class M2 {
}
class C {
}
class A = C with M1, E, M2;
main() {
new A();
}