Skip to content

Add explicit types to for-in loops #839

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

Merged
merged 1 commit into from
Jan 12, 2018
Merged

Add explicit types to for-in loops #839

merged 1 commit into from
Jan 12, 2018

Conversation

natebosch
Copy link
Member

Work around for dart-lang/sdk#31884 in the
dev.17.0 version of the SDK

Work around for dart-lang/sdk#31884 in the
dev.17.0 version of the SDK
@natebosch natebosch requested a review from jakemac53 January 12, 2018 18:15
@googlebot googlebot added the cla: yes Google is happy with the PR contributors label Jan 12, 2018
@@ -144,7 +144,7 @@ void checkBuild(BuildResult result,

final unhiddenOutputs = <String, dynamic>{};
final unhiddenAssets = new Set<AssetId>();
for (final id in outputs?.keys ?? const []) {
for (final String id in outputs?.keys ?? const []) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we should try to get more consistent about final vs not in for loops... :)

not a blocker anything as its a preexisting issue

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I know that the larger community pushed back against "final everywhere" but I find that I occasionally slip back into that habit...

Copy link
Contributor

Choose a reason for hiding this comment

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

ya honestly I don't care, I can see it either way, but I do care that it is consistent :)

@natebosch natebosch merged commit befd2b9 into master Jan 12, 2018
@natebosch natebosch deleted the for-in-var-types branch January 12, 2018 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google is happy with the PR contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants