-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA 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.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-augmentationsImplementation of the augmentations featureImplementation of the augmentations feature
Description
Any use of an augmented variable in an augmenting function is an error. But there are no expected errors in the analyzer in the code below.
const augmented = 1;
void topLevelFunction() {}
augment void topLevelFunction() {
var map = {
for (var i = 0; i > augmented;) i: i
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
};
var set = {
if (1 > augmented) 42
// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
};
}Appropriate co19 test is https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A10_t21.dart
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA 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.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-augmentationsImplementation of the augmentations featureImplementation of the augmentations feature