This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Compiler crash on private constructor (#SI-4645)

No replies
Mark Bush
Joined: 2011-05-19,
User offline. Last seen 42 years 45 weeks ago.
In 2.8.1, if I had a class with a private constructor, code trying to call it would generate the message:
error: constructor XXX cannot be accessed in YYY

In 2.9.0 (and 2.9.0.1) the compiler throws an exception as in issue #SI-4645 which is somewhat less friendly.
Is there a fix for this on the horizon?

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland