21 lines
405 B
Kotlin
Vendored
21 lines
405 B
Kotlin
Vendored
// "Add '@MyExperimentalAPI' annotation to 'outer'" "true"
|
|
// COMPILER_ARGUMENTS: -Xopt-in=kotlin.RequiresOptIn
|
|
// WITH_RUNTIME
|
|
|
|
@RequiresOptIn
|
|
@Target(AnnotationTarget.FUNCTION)
|
|
annotation class MyExperimentalAPI
|
|
|
|
open class Base {
|
|
@MyExperimentalAPI
|
|
open fun foo() {}
|
|
}
|
|
|
|
class Outer {
|
|
fun outer() {
|
|
class Derived : Base() {
|
|
override fun foo<caret>() {}
|
|
}
|
|
}
|
|
}
|