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

implicit_return should not trigger when there are closure scoped local functions following #5161

Closed
2 tasks done
MartinP7r opened this issue Aug 8, 2023 · 0 comments · Fixed by #5166
Closed
2 tasks done
Assignees
Labels
bug Unexpected and reproducible misbehavior.

Comments

@MartinP7r
Copy link

New Issue Checklist

Describe the bug

func foo() {
    return 1
    func bar() {}
}

This will trigger implicit_return, even though the return is necessary.

@SimplyDanny SimplyDanny added the bug Unexpected and reproducible misbehavior. label Aug 10, 2023
@SimplyDanny SimplyDanny self-assigned this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants