summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/experimental/existingFileAnnotationWithPackage.kt.after
blob: 64d3b0f2f8cd9e4ad7a83bb9ff692346d184dda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// "Opt in for 'B' in containing file 'existingFileAnnotationWithPackage.kt'" "true"
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
// WITH_RUNTIME
@file:OptIn(A::class, B::class)

package p

@RequiresOptIn
annotation class A

@RequiresOptIn
annotation class B

@A
fun f() {}

@B
fun g() {}

fun h() {
    g()
}