Files
kotlin-fork/compiler/testData/codegen/box/objects/classCallsProtectedInheritedByCompanion.kt
T
Mikhail Glukhikh ef8485a232 FIR2IR: change receiver handling in case it's an outer object
Before this commit, FIR2IR expected that FIR will have no receiver
in this case. However, now FIR *has* receiver, so we have to convert
it to object correctly
2020-01-27 00:34:16 +03:00

12 lines
134 B
Kotlin
Vendored

open class A {
protected fun foo() = "OK"
}
class B {
companion object : A()
fun bar() = foo()
}
fun box() = B().bar()