Files
kotlin-fork/compiler/testData/codegen/box/companion/kt54645.kt
T
2022-10-27 11:08:54 +00:00

22 lines
323 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// ISSUE: KT-54645
abstract class Base {
open class Nested
}
sealed class Derived : Base() {
open class Nested
}
class Impl() : Derived() {
companion object : Nested()
}
fun takeDerivedNested(x: Derived.Nested) {}
fun box(): String {
takeDerivedNested(Impl)
return "OK"
}