From b3e8dbb20a7a168c145201c1b7f077303ea20da8 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 19 Sep 2013 15:38:33 +0200 Subject: [PATCH] SI-7859 Value class member need not be public in 2.11+ --- overviews/core/_posts/2012-11-03-value-classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviews/core/_posts/2012-11-03-value-classes.md b/overviews/core/_posts/2012-11-03-value-classes.md index 22a02158e9..0b615b037d 100644 --- a/overviews/core/_posts/2012-11-03-value-classes.md +++ b/overviews/core/_posts/2012-11-03-value-classes.md @@ -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.