Experimental fixes: additional tests, handle local declarations

This commit is contained in:
Mikhail Glukhikh
2018-05-23 18:21:18 +03:00
parent 51fba03253
commit a76bb80e4d
7 changed files with 125 additions and 17 deletions
@@ -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>() {}
}
}
}