8000 Enable Scala 3 migration mode by zeal18 · Pull Request #325 · scala-graph/scala-graph · GitHub
[go: up one dir, main page]

Skip to content

Enable Scala 3 migration mode #325

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 1 commit into from
Jul 27, 2024

Conversation

zeal18
Copy link
Contributor
@zeal18 zeal18 commented Jul 25, 2024

As it was suggested in another PR (#323) I'm enabling the compiler migration mode first

final case class HyperEdge[+N] private (override val ends: Several[N])
final case class HyperEdge[+N](override val ends: Several[N])
Copy link
Contributor Author
@zeal18 zeal18 Jul 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not private any more because of the synthesised copy method, which doesn't follow the constructor encapsulation in Scala 2, but follows in Scala 3 and it breaks compatibility

more details: https://docs.scala-lang.org/scala3/guides/migration/tooling-scala2-xsource3.html#changes-in-language-semantics

@zeal18 zeal18 force-pushed the scala3-migration-mode branch from 7cfc5d6 to c27e873 Compare July 25, 2024 07:25
@peter-empen peter-empen merged commit 62d0d53 into scala-graph:2.x Jul 27, 2024
1 check passed
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.

2 participants
0