Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Annotation to warn/deprecate about subclassing a class #6162
Currently there is only @deprecated, which warns about every usage of an element with that annotation.
The idea is to add an annotation which does apply to classes and warns about sub-classing the annotated class, but not the usage.
Use cases for this annotations is the communication of specific intents to users of the class:
See https://groups.google.com/d/topic/scala-internals/mvs3yQh1I_k/discussion for further discussion.
Imported From: https://issues.scala-lang.org/browse/SI-6162?orig=1