Files
Alexander Udalov 07d3e3a5bd Kapt: support property $annotations methods for JVM IR
`is PropertyDescriptor` check doesn't work for JVM IR where descriptor
is created on-the-fly and is an `IrBasedSimpleFunctionDescriptor`.

 #KT-49682
2022-02-08 20:15:14 +01:00

24 lines
440 B
Kotlin
Vendored

@Target(AnnotationTarget.FIELD)
annotation class FieldAnno
@Target(AnnotationTarget.PROPERTY)
annotation class PropertyAnno
@Target(AnnotationTarget.VALUE_PARAMETER)
annotation class ParameterAnno
annotation class Anno
class Foo(@FieldAnno @PropertyAnno @ParameterAnno @Anno val a: String)
class Bar {
@FieldAnno @PropertyAnno @Anno
val a: String = ""
}
class Baz {
@FieldAnno @Anno
@JvmField
val a: String = ""
}