Kapt: Restore constant identifiers for field annotations (KT-27334)

The old behavior broke after the refactoring of annotations with use-site targets.
This commit is contained in:
Yan Zhulanow
2018-10-17 22:18:19 +03:00
parent 0ae5d1c08f
commit 1f6dbc74da
6 changed files with 236 additions and 2 deletions
@@ -0,0 +1,23 @@
@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 = ""
}