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

refmt removes parents leading to invalid code #2724

Closed
jchavarri opened this issue Sep 27, 2023 · 2 comments · Fixed by #2725
Closed

refmt removes parents leading to invalid code #2724

jchavarri opened this issue Sep 27, 2023 · 2 comments · Fixed by #2725

Comments

@jchavarri
Copy link
Contributor

Input:

let {foo: (_: int)} = 2;

Output:

let {foo: _: int} = 2;

Also applies to switch expressions, using destruct in let to simplify the repro.

@anmonteiro
Copy link
Member

anmonteiro commented Oct 5, 2023

What's an example of switch expression failing? or did you mean pattern?

@jchavarri
Copy link
Contributor Author

Yes, I meant pattern (I think you already figured it out 😄 thanks!)

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

Successfully merging a pull request may close this issue.

2 participants