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

[analyzer] strict-inference target range too broad when return type can't be inferred #52700

Closed
parlough opened this issue Jun 14, 2023 · 0 comments

Comments

@parlough
Copy link
Member

parlough commented Jun 14, 2023

When the return type of a function can't be inferred, the diagnostic's (inference_failure_on_function_return_type) range is the entire function, making code hard to read in an IDE and potentially making the issue harder to identify. This is especially the case when there are local functions. It should likely just target the function name.

Example of confusion
@parlough parlough changed the title [analyzer] strict-inference target too large when return type can't be inferred [analyzer] strict-inference target range too broad when return type can't be inferred Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant