Skip to content

[Augmentations] No error when augmenting enum has no values #56883

@sgrekhov

Description

@sgrekhov

The code below produce no expected error in the analyzer.

enum E1 {
  e0;
}

augment enum E1 {}
//           ^^
// [analyzer] unspecified
// [cfe] unspecified

But enum without any values must be a syntax error (even it is an augmenting declaration).

Appropriate failing co19 test https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmenting_enum_values_A03_t04.dart

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-augmentationsImplementation of the augmentations feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions