[Augmentations] No error when augmenting enum has no values #56883
Labels
analyzer-spec
Issues with the analyzer's implementation of the language spec
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
feature-augmentations
Implementation of the augmentations feature
P2
A bug or feature request we're likely to work on
The code below produce no expected error in the analyzer.
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
The text was updated successfully, but these errors were encountered: