-
Notifications
You must be signed in to change notification settings - Fork 29
#2559. Add tests for reserved word augmented in constructors. Part 1.
#3014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
eernstg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I think there are a number of situations where one more case could just as well have been included, but isn't there. It's mainly about extension types whose primary constructor is augmented.
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t01.dart
Outdated
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t12.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t13.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t14.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t15.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t18.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t19.dart
Show resolved
Hide resolved
| // ^^^^^^^^^ | ||
| // [analyzer] unspecified | ||
| // [cfe] unspecified | ||
| const E.bar({({int augmented}) r = (augmented: 0)}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as the above
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t19.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t20.dart
Show resolved
Hide resolved
sgrekhov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. In several cases augmenting constructors of extension type are missed by purpose. PTAL.
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t01.dart
Outdated
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t12.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t13.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t14.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t15.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t18.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t19.dart
Show resolved
Hide resolved
| // ^^^^^^^^^ | ||
| // [analyzer] unspecified | ||
| // [cfe] unspecified | ||
| const E.bar({({int augmented}) r = (augmented: 0)}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as the above
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t19.dart
Show resolved
Hide resolved
LanguageFeatures/Augmentation-libraries/augmented_expression_A11_t20.dart
Show resolved
Hide resolved
eernstg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2024-12-12 sgrekhov22@gmail.com dart-lang/co19#2559. Add tests for reserved word `augmented` in constructors. Part 1. (dart-lang/co19#3014) 2024-12-12 sgrekhov22@gmail.com dart-lang/co19#2559. Update assertions for redirecting generative constructors tests (dart-lang/co19#3013) 2024-12-11 sgrekhov22@gmail.com dart-lang/co19#2559. Update non-redirecting generative constructors tests (dart-lang/co19#3012) 2024-12-11 sgrekhov22@gmail.com dart-lang/co19#2559. Add factory constructors to augmented_expression_A04_t*.dart tests (dart-lang/co19#3011) 2024-12-09 sgrekhov22@gmail.com dart-lang/co19#2559. Update assertion text for for some of augmented expressions tests (dart-lang/co19#3010) Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try Change-Id: I1d95b2092a91651bebb63c82c11cf154ff5da863 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400580 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Erik Ernst <eernst@google.com>
No description provided.