Files
2023-01-31 10:53:31 +00:00

21 lines
362 B
Kotlin

// "Add annotation target" "false"
// ACTION: Introduce import alias
// WITH_STDLIB
// DISABLE-ERRORS
@file:MyExperimentalAPI<caret>
@RequiresOptIn
@Target(AnnotationTarget.CLASS)
annotation class MyExperimentalAPI
@MyExperimentalAPI
class Some {
fun foo() {}
}
class Bar {
@OptIn(MyExperimentalAPI::class)
fun bar() {
Some().foo()
}
}