-
Notifications
You must be signed in to change notification settings - Fork 282
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
scala3 named tuple style pattern matching is not working #4713
Comments
@shuttie when you were submitting this issue, did you have a chance to read through the issue template, perhaps? the section entitled "do not submit if", specifically. |
Btw. we are working on it currently in the scalameta parser, @Florian3k should have a PR ready soon. |
@kitbellew yes I've read the issue template and saw the notice. But it's still unclear to me, if there's a way to triage beforehand to figure out if it's a |
the issue description explicitly emphasizes that anything related to your code (input) is a parser issue. so either you set your dialect incorrectly, or the parser has a bug. also, you used sbt and not the scalafmt binary. also a requirement that was called out. |
Steps
Given code like this:
and a scalafmt.conf file:
with a build.sbt:
Problem
Scalafmt fails formatting the code, but compiling works:
Expectation
The latest version of scalafmt does not yet support
scala36
syntax, but AFAIK named tuples are also available in the 3.5. Is there a way to have both named tuples AND scalafmt in the same project?The text was updated successfully, but these errors were encountered: