summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/experimental/basicFunction.kt
blob: cf3342c8dcdd911337c0fcdac9103a8e86883dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// "Propagate 'MyExperimentalAPI' opt-in requirement to 'bar'" "true"
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
// WITH_RUNTIME

@RequiresOptIn
annotation class MyExperimentalAPI

@MyExperimentalAPI
fun foo() {}

class Bar {
    fun bar() {
        foo<caret>()
    }
}