mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
29 lines
959 B
Kotlin
29 lines
959 B
Kotlin
// "Propagate 'MyExperimentalAPI' opt-in requirement to containing class 'Outer'" "false"
|
|
// IGNORE_K1
|
|
// COMPILER_ARGUMENTS: -opt-in=kotlin.RequiresOptIn
|
|
// WITH_STDLIB
|
|
// ACTION: Opt in for 'MyExperimentalAPI' in containing file 'nestedClassesFir.kt'
|
|
// ACTION: Opt in for 'MyExperimentalAPI' in module 'light_idea_test_case'
|
|
// ACTION: Opt in for 'MyExperimentalAPI' on 'bar'
|
|
// ACTION: Opt in for 'MyExperimentalAPI' on containing class 'Inner'
|
|
// ACTION: Propagate 'MyExperimentalAPI' opt-in requirement to 'bar'
|
|
// ACTION: Propagate 'MyExperimentalAPI' opt-in requirement to containing class 'Inner'
|
|
// ERROR: This declaration needs opt-in. Its usage must be marked with '@MyExperimentalAPI' or '@OptIn(MyExperimentalAPI::class)'
|
|
|
|
@RequiresOptIn
|
|
annotation class MyExperimentalAPI
|
|
|
|
@MyExperimentalAPI
|
|
fun foo() {
|
|
}
|
|
|
|
class Outer {
|
|
class Bar {
|
|
class Inner {
|
|
fun bar() {
|
|
foo<caret>()
|
|
}
|
|
}
|
|
}
|
|
}
|