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

scala.annotation.internal.Child.scala Maven / Gradle / Ivy

There is a newer version: 3.6.3-RC1-bin-20241119-cc4a324-NIGHTLY
Show newest version
package scala.annotation
package internal

/** An annotation to indicate a child class or object of the annotated class.
 *  E.g. if we have
 *
 *    sealed class A
 *    case class B() extends A
 *    case class C() extends A
 *
 *  Then the class symbol `A` would carry the annotations
 *  `@Child[Cref]`, @Child[Bref] where `Bref`, `Cref` are TypeRefs
 *  referring to the class symbols of `B` and `C`.
 *
 *  Child annotations always appear in reverse order of textual occurrence.
 *  I.e. in the example above, it is guaranteed that the child annotation for `C`
 *  appears before the one for `B`.
 *
 *  TODO: This should be `Child[T <: AnyKind]`
 */
class Child[T] extends Annotation




© 2015 - 2024 Weber Informatics LLC | Privacy Policy