mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
20 lines
402 B
Kotlin
20 lines
402 B
Kotlin
// "Opt in for 'B' on 'root'" "true"
|
|
@RequiresOptIn
|
|
annotation class A
|
|
|
|
@RequiresOptIn
|
|
annotation class B
|
|
|
|
@A
|
|
fun f1() {}
|
|
|
|
@B
|
|
fun f2() {}
|
|
|
|
@OptIn(A::class)
|
|
fun root() {
|
|
f1()
|
|
<caret>f2()
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.OptInFixes$HighPriorityUseOptInAnnotationFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.OptInFixes$HighPriorityUseOptInAnnotationFix |