[augmentations] No error when augmenting class-like declaration named augmented
#59773
Labels
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
type-enhancement
A request for a change that isn't a bug
In an augmentation scope
augmented
is a reserved world and can be used for calling introductory declaration only. Any other use of this word is a compile-time error. But there is no expected error in the analyzer belowAppropriate cp19 tests:
https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t14.dart
https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t15.dart
https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t16.dart
https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t17.dart
https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t18.dart
The text was updated successfully, but these errors were encountered: