Skip to content

Commit c87c030

Browse files
committed
Better doc comment
1 parent f1d95c2 commit c87c030

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/dotty/annotation/internal/Child.scala

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,14 @@ package dotty.annotation.internal
22

33
import scala.annotation.Annotation
44

5-
/** An annotation to indicate a child class or object of the annotated class. */
5+
/** 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+
*/
615
class Child[T] extends Annotation

0 commit comments

Comments
 (0)