f441151eab
^KT-54645 Fixed
22 lines
323 B
Kotlin
Vendored
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"
|
|
}
|