aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/annotation/internal/Child.scala
blob: 4f3ceb6c09c699c6bb2ec5ffa767aa4abd31dd69 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14



                                  









                                                                             
                                 
package dotty.annotation.internal

import scala.annotation.Annotation

/** 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 `A` would carry the annotations `@Child[B] @Child[C]` where
 *  `B`, `C` are TypeRefs.
 */
class Child[T] extends Annotation