mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Allow to get annotation list and to invoke `findAnnotation` without building delegate
Introduce KtLightNullabilityAnnotation which holds nullability information and is built
before delegate is built
30 lines
406 B
Kotlin
Vendored
30 lines
406 B
Kotlin
Vendored
// p.Annotations
|
|
package p
|
|
|
|
|
|
class Annotations {
|
|
|
|
@R("a") @R("b") @R("c")
|
|
fun repeatables1() {
|
|
|
|
}
|
|
|
|
@R("a")
|
|
fun repeatables2() {
|
|
|
|
}
|
|
|
|
@R("a") @S("b") @R("c") @S("D") @R("f")
|
|
fun repeatables3() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@Repeatable
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class S(val g: String)
|
|
|
|
@Repeatable
|
|
@Retention(AnnotationRetention.SOURCE)
|
|
annotation class R(val s: String) |