blob: f533e362a8bf4a439bf6d4327a94b6df7a1a4de6 [file]
// IGNORE_BACKEND_K1: JVM_IR
// LANGUAGE: +AllowAccessToProtectedFieldFromSuperCompanion
// WITH_STDLIB
// FILE: A.kt
package a
abstract class A {
companion object {
protected const val constVal = "OK"
}
}
// FILE: B.kt
import a.A
class B : A() {
fun f() = constVal
}
fun box(): String = B().f()