Skip to content

Fix rewrites for refutable pattern bindings #14954

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

Merged
merged 3 commits into from
Apr 19, 2022
Merged

Conversation

griggt
Copy link
Contributor

@griggt griggt commented Apr 18, 2022

In certain cases, the rewrites for refutable pattern bindings produced syntactically invalid code or did not correct the issue at hand.

Also, a flaw in the Vulpix code for rewrite testing would allow the CI to pass even when individual rewrite tests were failing.

Extracted from #14294

griggt added 3 commits April 16, 2022 12:14
previously, the test run would complete with success despite the
rewrite test itself failing.
the test added here used to fail because the `case` was patched
inside the parens, e.g. `for (case x: String) ...` which is not valid
@dwijnand dwijnand merged commit c93a237 into scala:main Apr 19, 2022
@griggt griggt deleted the rewrite-fixes branch April 19, 2022 14:47
@Kordyjan Kordyjan added this to the 3.2.0 milestone Aug 1, 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

Successfully merging this pull request may close these issues.

3 participants