summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/experimental/getterUseSiteImplicit.kt.after
blob: 1a196c27fcb6e6449d598a3afe62db81105fe706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// "Move 'SomeOptInAnnotation' opt-in requirement from getter to property" "true"
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
// WITH_RUNTIME

@RequiresOptIn
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.PROPERTY_GETTER)
annotation class SomeOptInAnnotation

class Foo(val value: Int) {
    @SomeOptInAnnotation
    val bar: Boolean
        get() = value > 0
}