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