AnnotationReferenceTag

annotation class AnnotationReferenceTag

Annotation for annotations that are used as a reference tag for annotations.

The AnnotationReferenceTag annotation is used to reference to, for instance, RequiresOptIn annotations. This requires a tag mechanism, as referring to the annotation directly is not allowed by the Kotlin compiler. This is only allowed for the OptIn annotation; however this annotation has source retention and therefore it cannot be used for Lint checks.

Constructors

Link copied to clipboard
fun AnnotationReferenceTag()