-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enable -Xsource:3 #1584
Comments
I will happily volunteer for this. |
I would suggest checking |
Go for it |
As usual, it was easier said than done. Turns out scala 2.12 does not support Without this we cannot use these new features like the improved semantics for copy modifiers, meaning that if we want to be better at preserving binary compatibility we have to stop using case classes in public api. Enabling it only for 2.13 & 3 doesn't make sense imo. We could enable //> using scala 2.12
//> using options -Xsource:3
case class Person private (age: Int, name: String) |
I agree that ideally this should be a goal. We even had started on it, but lay-offs and reprioritisations forced us to park this effort : #1391 |
This should be enabled for both scala 2.12 and 2.13 builds.
It ensures that the code behaves in the same way across all language versions.
This fixes a bug in scala 2.12 and 2.13 where
copy
method is still accessible even though the primary constructor has been marked asprivate
.Above is binary incompatible change so I guess this goes into 0.19 series.
The text was updated successfully, but these errors were encountered: