-
Notifications
You must be signed in to change notification settings - Fork 1k
Ambiguity in Tour of Scala : Case Classes #2771
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
Comments
Thank you for opening the issue!
This seems like a sensible change to me, feel free to go ahead with the PR :) |
QuentinCazelles
pushed a commit
to QuentinCazelles/docs.scala-lang
that referenced
this issue
Apr 17, 2023
julienrf
pushed a commit
that referenced
this issue
Apr 18, 2023
I guess this issue can be closed as PR is already merged |
Indeed, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In section "Defining a case class" :
Scala 2 and 3
Keyword new does not have to be used explicitly.
It can be though, hence the ambiguity.
As stated in "Classes" part of the Tour of Scala, section "Defining a class" :
Scala 3
For context:
Can make a PR if asked. Here is a try :
The text was updated successfully, but these errors were encountered: