@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS]) annotation class base @base annotation class derived @base class correct(x: Int) { @base constructor() @base val x: Int } @base enum class My { @base FIRST, @base SECOND } @base fun foo(@base y: @base Int): Int @base val z: Int