The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
BSD 3-Clause "New" or "Revised" License
10.28k
stars
1.58k
forks
source link
[augmentations] No error in case of use `augmented` constant in a control-flow collections `if` and `for` #57053
Open
sgrekhov opened 2 weeks ago
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.Appropriate co19 test is https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmented_expression_A10_t21.dart