Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/protectedInSuperClass/defaultArguments.kt
T
2021-03-31 00:08:52 +02:00

21 lines
293 B
Kotlin
Vendored

// 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()