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

unused_enumerated bug #1787

Closed
PavleFromToptal opened this Issue Aug 18, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@PavleFromToptal

PavleFromToptal commented Aug 18, 2017

for (section, (event, _)) in data.enumerated()

Data is an array of tuples, and this line of code reports that the item is not used, even though "event" is being used.

@marcelofabri

This comment has been minimized.

Show comment
Hide comment
@marcelofabri

marcelofabri Aug 18, 2017

Collaborator

Please provide a complete snippet.

Collaborator

marcelofabri commented Aug 18, 2017

Please provide a complete snippet.

@PavleFromToptal

This comment has been minimized.

Show comment
Hide comment
@PavleFromToptal

PavleFromToptal Aug 18, 2017

let data:[(String, String)] = []
for (section, (event, _)) in data.enumerated() { print(event) }

PavleFromToptal commented Aug 18, 2017

let data:[(String, String)] = []
for (section, (event, _)) in data.enumerated() { print(event) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment