-
Notifications
You must be signed in to change notification settings - Fork 28
#3057. Add promotion tests for if
and break
statements
#3156
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
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, with a few comments!
As usual, I'm worried that tests where significant code is dead are too confusing for future readers (they might very well think "OK, this is wrong, that's dead code!" and then proceed to delete or change the test). So it would be nice to have just one comment in the first of several cases in each of the tests that are testing the treatment of dead code.
Thank you. Updated. PTAL. |
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, thanks!
2025-05-01 49699333+dependabot[bot]@users.noreply.github.com Bump actions/setup-java from 4.7.0 to 4.7.1 in the github-actions group (dart-lang/co19#3166) 2025-04-30 [email protected] dart-lang/co19#3057. Add type of interest tests. (dart-lang/co19#3161) 2025-04-30 [email protected] dart-lang/co19#3057. Update promotion via assignment tests (dart-lang/co19#3160) 2025-04-30 [email protected] dart-lang/co19#3057. Add promotion tests for `if` and `break` statements (dart-lang/co19#3156) 2025-04-29 [email protected] dart-lang/co19#3057. Add promotion tests for for-in loop (dart-lang/co19#3154) 2025-04-29 [email protected] Fixes dart-lang/co19#3151. Update constants expression tests. (dart-lang/co19#3157) 2025-04-29 [email protected] dart-lang/co19#3057. Remove obsolete `promotion_via_initialization_*` tests (dart-lang/co19#3163) 2025-04-29 [email protected] dart-lang/co19#3057. Add promotion tests for do loop and continue statement (dart-lang/co19#3155) 2025-04-29 [email protected] dart-lang/co19#3057. Fix typos in descriptions in `promotion_via_type_test_*` (dart-lang/co19#3164) Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try Change-Id: Icf2ea16079c6998c7c8eca502c7c6f08f816b445 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426060 Reviewed-by: Erik Ernst <[email protected]> Reviewed-by: Alexander Thomas <[email protected]> Commit-Queue: Alexander Thomas <[email protected]>
No description provided.