Experimental fixes: additional tests, handle local declarations
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// "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 {
|
||||
fun outer() {
|
||||
class Derived : Base() {
|
||||
override fun foo<caret>() {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user