-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove unneeded null check after promotion #51171
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.
^
|
@lrhn ? |
|
Question about list Mixin... sdk/sdk/lib/collection/list.dart Lines 48 to 54 in df6ea63
My ((in)correct?) understand of this is... no public method defined on the mixin calls another (public method). This ensures later classes that @override a mixin's method will be limited to just that method, not effecting any of the other functions defined on the mixin.
However in the following snippet, notice sdk/sdk/lib/collection/list.dart Lines 525 to 534 in df6ea63
Also, some methods seem to be using the iterator sdk/sdk/lib/collection/list.dart Lines 283 to 290 in df6ea63
I actually much prefer the looping using iterator, and prefer it if the methods were written using it's declarative style (as opposed to the imperative style required by limiting to using |
|
Review expected in https://dart-review.googlesource.com/c/sdk/+/280075 |
|
@jarrodcolburn there are test failures, e.g. here. Please update the expectation files in the PR. Another way is to use Gerrit to propose changes as described here. |
|
https://dart-review.googlesource.com/c/sdk/+/283682 which includes additional places than the ones in the PR, and updates the |
Fixes #51171 CoreLibraryReviewExempt: Removes no-longer-needed non-null promotion. Change-Id: I46215a274c3042619578bf25bff045b15d4e087f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/283682 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Lasse Nielsen <lrn@google.com>
Remove unneeded null check after promotion