10000 SI-7859 Value class member need not be public in 2.11+ by retronym · Pull Request #250 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

SI-7859 Value class member need not be public in 2.11+ #250

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
Oct 7, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion overviews/core/_posts/2012-11-03-value-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Full details on the implementation of value classes and their limitations may be

A value class ...

1. ... must have only a primary constructor with exactly one public, val parameter whose type is not a value class.
1. ... must have only a primary constructor with exactly one public, val parameter whose type is not a value class. (From Scala 2.11.0, the parameter may be non-public.)
2. ... may not have specialized type parameters.
3. ... may not have nested or local classes, traits, or objects
4. ... may not define a equals or hashCode method.
Expand Down
0