We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d95c2 commit c87c030Copy full SHA for c87c030
src/dotty/annotation/internal/Child.scala
@@ -2,5 +2,14 @@ package dotty.annotation.internal
2
3
import scala.annotation.Annotation
4
5
-/** An annotation to indicate a child class or object of the annotated class. */
+/** An annotation to indicate a child class or object of the annotated class.
6
+ * E.g. if we have
7
+ *
8
+ * sealed class A
9
+ * case class B() extends A
10
+ * case class C() extends A
11
12
+ * Then `A` would carry the annotations `@Child[B] @Child[C]` where
13
+ * `B`, `C` are TypeRefs.
14
+ */
15
class Child[T] extends Annotation
0 commit comments