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

Switch enum autocompletion is not being limited to missing cases in case above others. #474

Open
thetarnav opened this issue Aug 13, 2024 · 2 comments

Comments

@thetarnav
Copy link
Contributor

Enum :: enum {A, B, C, D, E}
e: Enum

switch e {
case . // autocompletions: .A, .B, .C, .D, .E
case .A, .B:
case . // autocompletions: .C, .D, .E
}
enum_switch_ols.mp4
@DanielGavin
Copy link
Owner

It might not be possible to fix without the parsing being more fault tolerant. I'll have to check.

@DanielGavin
Copy link
Owner

Yeah it does seem this has to be fixed in core:odin.

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

No branches or pull requests

2 participants