eee66ab43f
If an annotation doesn't specify an explicit use-site target, previously it was added to both, the primary constructor value parameter and the property in the FIR. Then, in FIR2IR, only the "correct" one was added to the IR. Move up the deduplication logic into the frontend. ^KT-56177 Fixed
28 lines
327 B
Plaintext
Vendored
28 lines
327 B
Plaintext
Vendored
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.ANNOTATION_CLASS])
|
|
annotation class base
|
|
|
|
@base
|
|
annotation class derived
|
|
|
|
@base
|
|
class correct(x: Int) {
|
|
@base
|
|
constructor()
|
|
|
|
@base
|
|
val x: Int
|
|
}
|
|
|
|
@base
|
|
enum class My {
|
|
@base FIRST,
|
|
@base SECOND
|
|
}
|
|
|
|
@base
|
|
fun foo(@base y: @base Int): Int
|
|
|
|
@base
|
|
val z: Int
|
|
|