mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
12 lines
188 B
Kotlin
Vendored
12 lines
188 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
open class A {
|
|
companion object {
|
|
protected fun foo() = "OK"
|
|
}
|
|
class B : A() {
|
|
fun bar() = foo()
|
|
}
|
|
}
|
|
|
|
fun box() = A.B().bar()
|