AnyVal makes private case class constructor public

Philippe Suter <[email protected]> Tue, 5 Apr 2016 11:14:51 -0700 (PDT)
Newsgroups gmane.comp.lang.scala
Message-ID <[email protected]>
I'm wondering if the observed behavior is intentional; in the attached 
file, I expect the three class construction calls to fail, but only the 
ones commented out do.

It seems that having a case class extends AnyVal renders its constructor 
public.

Maybe a special case of https://github.com/scala/scala/pull/2236 ?

Tested on Scala 2.11.8.

Best regards,
PS

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
Example.scala (application/octet-stream, 487 B) - not displayed