blob: a4e4694406253f912c91113c87a01c32c80ed7bc [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 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 a compile error if enum has more then one
/// comma in the end of member list.
/// @author ngl@unipro.ru
enum E {a, b,, }
// ^
// [analyzer] unspecified
// [cfe] unspecified
main() {
E e = E.b;
// ^
// [cfe] unspecified
}