blob: 9e3cd35bed3108dcecb39971697d00cd74d2d2d1 [file] [log] [blame]
// Copyright (c) 2021, 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 We propose the following to also be allowed:
///
/// enum Name<T> with Mixin1, Mixin2 implements Interface1, Interface2 {
/// id1<int>(args1), id2<String>(args2), id3<bool>(args3);
/// memberDeclaration*
/// const Name(params) : initList;
/// }
/// where memberDeclaration* is any sequence of static and instance member
/// declarations and/or an unnamed generative const constructor declaration.
///
/// @description Check that type argument without arguments is not allowed
/// @author sgrekhov@unipro.ru
// SharedOptions=--enable-experiment=enhanced-enums
enum E1<T> {
e1<int>,
// ^
// [analyzer] unspecified
// [cfe] unspecified
e2<String>,
// ^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
E1.e1;
E1.e2;
}