Skip to content

syntax rewrites page contradicts indentation documenation #209

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

Closed
nemoo opened this issue May 17, 2021 · 1 comment · Fixed by scala/docs.scala-lang#2106
Closed

syntax rewrites page contradicts indentation documenation #209

nemoo opened this issue May 17, 2021 · 1 comment · Fixed by scala/docs.scala-lang#2106

Comments

@nemoo
Copy link

nemoo commented May 17, 2021

I followed the https://scalacenter.github.io/scala-3-migration-guide/docs/tooling/scala-3-syntax-rewrites.html in order to rewrite a scala 2 application to scala 3.

During the migration, an error occured as documented here: scala/scala3#12503
In the discussion of this issue it was suggested to open a ticket in the migration guide, which I am now doing.

Should I repost the contents of the dotty ticket here?
The gist of it is: I performed the rewrite as documented in the migration guide: First the -rewrite -indent, then the -rewrite -new-syntax.
That results in the compilation error as discussed in the dotty issue.

The correct approach as documented here https://dotty.epfl.ch/docs/reference/other-new-features/indentation.html suggests that the operation must be done in the opposite order.

@adpi2
Copy link
Member

adpi2 commented May 18, 2021

Thanks for the report!

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