// "Add '@MyExperimentalAPI' annotation to containing class 'Outer'" "false" // COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn // WITH_RUNTIME // ACTION: Add '@MyExperimentalAPI' annotation to 'bar' // ACTION: Add '@MyExperimentalAPI' annotation to containing class 'Inner' // ACTION: Add '@OptIn(MyExperimentalAPI::class)' annotation to 'bar' // ACTION: Add '-Xopt-in=MyExperimentalAPI' to module light_idea_test_case compiler arguments // ACTION: Introduce import alias // ERROR: This declaration is experimental and 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() } } } }