Skip to content
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

bug(semantic): implicit return in arrow function does not count as a read #5156

Closed
DonIsaac opened this issue Aug 23, 2024 · 1 comment · Fixed by #5161
Closed

bug(semantic): implicit return in arrow function does not count as a read #5156

DonIsaac opened this issue Aug 23, 2024 · 1 comment · Fixed by #5161
Assignees
Labels
A-semantic Area - Semantic C-bug Category - Bug

Comments

@DonIsaac
Copy link
Contributor

DonIsaac commented Aug 23, 2024

Given a variable i:

Expected behavior
image

Actual behavior
image

This causes no-unused-vars to incorrectly report i as unused.

@Boshen
Copy link
Member

Boshen commented Aug 24, 2024

I recall @Dunqing made some changes to update expression before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-semantic Area - Semantic C-bug Category - Bug
Projects
None yet
3 participants