All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.annotation.constructorOnly.scala Maven / Gradle / Ivy

The newest version!
/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2003-2013, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |    http://scala-lang.org/               **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

package scala.annotation

import scala.annotation.meta._

/** An annotation that goes on parameters of classes or traits. It asserts
 *  that the parameter is used only for initialization and is not kept in
 *  the class as a field. Violations of this assertion are flagged as
 *  compile errors. The annotation is particularly useful for implicit
 *  parameters since for these a textual scan is not sufficient to know
 *  where they are used.
 */
@param class constructorOnly extends scala.annotation.StaticAnnotation




© 2015 - 2025 Weber Informatics LLC | Privacy Policy