blob: 883cb2c05aa08d104dbb130d5ddace184345d480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// "Opt in for 'MyExperimentalAPI' on containing class 'Bar'" "true"
// PRIORITY: HIGH
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
// WITH_RUNTIME
package a.b
@RequiresOptIn
@Target(AnnotationTarget.FUNCTION)
annotation class MyExperimentalAPI
@MyExperimentalAPI
fun foo() {}
@OptIn(MyExperimentalAPI::class)
class Bar {
fun bar() {
foo()
}
}
|