Files
Andrey Cherkasov cc4c62230f [kotlin] Port AddAnnotationUseSiteTargetFix to K2
^KTIJ-29573

GitOrigin-RevId: 181131d6870b049ce4e693cd9e80370523f8ca35
2024-09-08 21:38:22 +00:00

16 lines
566 B
Kotlin

// "Add use-site target 'delegate'" "true"
import kotlin.reflect.KProperty
@Target(AnnotationTarget.FIELD)
annotation class Anno
class Abcd {
operator fun getValue(nothing: Nothing?, property: KProperty<*>): Any = Unit
operator fun setValue(nothing: Nothing?, property: KProperty<*>, any: Any) = Unit
}
@<caret>Anno
var a by Abcd()
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddAnnotationUseSiteTargetFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.WrongAnnotationTargetFixFactories$AddAnnotationUseSiteTargetFix