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

Completions suggest unreachable variables in static local functions #66982

Open
DoctorKrolic opened this issue Feb 21, 2023 · 2 comments · May be fixed by #76043
Open

Completions suggest unreachable variables in static local functions #66982

DoctorKrolic opened this issue Feb 21, 2023 · 2 comments · May be fixed by #76043
Assignees
Labels
Milestone

Comments

@DoctorKrolic
Copy link
Contributor

DoctorKrolic commented Feb 21, 2023

Version Used:
Latest main

Steps to Reproduce:
devenv_HUTRApYHjC

Expected Behavior:
args is not suggested because having it here leads to compiler error

Actual Behavior:
args and any other variables from outer method's body are suggested

@CyrusNajmabadi
Copy link
Member

I would be up for taking a fix on this. :)

@jaredpar jaredpar added the untriaged Issues and PRs which have not yet been triaged by a lead label Feb 27, 2023
@jcouv jcouv added the Area-IDE label Mar 9, 2023
@arunchndr arunchndr added this to the 17.8 P4 milestone Aug 3, 2023
@arunchndr arunchndr removed the untriaged Issues and PRs which have not yet been triaged by a lead label Aug 3, 2023
@DoctorKrolic
Copy link
Contributor Author

The question here is whether this is and IDE responsibility to filter out unreachable symbols, or compiler APIs shouldn't return them in the first place during lookup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants