Skip to content

Commit 5c689ba

Browse files
authored
Clarifying first limitation of value-classes (scala#1398)
Clarifying first limitation of value-classes
2 parents 7ddf784 + 5a501aa commit 5c689ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/core/value-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Full details on the implementation of value classes and their limitations may be
140140

141141
A value class ...
142142

143-
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.)
143+
1. ... must have only a primary constructor with exactly one public, val parameter whose type is not a user-defined value class. (From Scala 2.11.0, the parameter may be non-public.)
144144
2. ... may not have specialized type parameters.
145145
3. ... may not have nested or local classes, traits, or objects
146146
4. ... may not define a equals or hashCode method.

0 commit comments

Comments
 (0)