Minor, add a bit more tests for KT-12063

This commit is contained in:
Alexander Udalov
2021-03-31 00:07:00 +02:00
parent 66429cfb43
commit 1f7cef6f13
12 changed files with 238 additions and 23 deletions
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: 1.kt
package a
open class A {
companion object {
@JvmStatic
protected fun foo(result: String = "OK"): String = result
}
}
// FILE: 2.kt
import a.*
class B : A() {
fun bar(): String = foo()
}
fun box() = B().bar()