Skip to content

Conversation

@sgrekhov
Copy link
Contributor

No description provided.

Copy link
Member

@eernstg eernstg left a 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.

// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
const E.bar({({int augmented}) r = (augmented: 0)});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Copy link
Contributor Author

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

Copy link
Contributor Author

@sgrekhov sgrekhov left a 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.

// ^^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
const E.bar({({int augmented}) r = (augmented: 0)});
Copy link
Contributor Author

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

@sgrekhov sgrekhov requested a review from eernstg December 12, 2024 16:27
Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eernstg eernstg merged commit 8aa6775 into dart-lang:master Dec 12, 2024
2 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Dec 13, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants