blob: 2d0f596ed476872fbc3a81af025f4e790e9294d5 [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 An enumerated type, or enum, is used to represent a fixed number
/// of constant values.
/// enumType:
/// metadata enum id ‘{’ id [‘, ’ id]* [‘, ’] ‘}’
/// ;
/// @description Checks that it is compile-time error if closing brace is missing
/// @author sgrekhov@unipro.ru
enum E {a, b, c
// ^
// [cfe] unspecified
main() {
//^
// [analyzer] unspecified
E e;
}