blob: 41c97aeb82e6938b95f5dca077d63a69c5adf9d4 [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.
// @dart = 2.9
/// @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 explicitly instantiate
/// an enum
/// @author sgrekhov@unipro.ru
enum E {a, b, c}
main() {
E e = new E();
// ^
// [analyzer] unspecified
// [cfe] unspecified
}