Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/annotationsWithTargets.kt
T
Yan Zhulanow 1f6dbc74da Kapt: Restore constant identifiers for field annotations (KT-27334)
The old behavior broke after the refactoring of annotations with use-site targets.
2018-10-24 20:12:37 +03:00

23 lines
439 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 = ""
}