mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
^KTIJ-21686 Fixed closes https://github.com/JetBrains/intellij-community/pull/2310 GitOrigin-RevId: bbc46907b8d46de7e5f3bb8e875c95bceacb420d
21 lines
362 B
Kotlin
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()
|
|
}
|
|
} |