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