20 lines
450 B
Kotlin
Vendored
20 lines
450 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// ISSUE: KT-59550
|
|
// IGNORE_BACKEND_K2: ANY
|
|
// Ignore reason: KT-62393 and KT-62394
|
|
// FILE: Intermediate.java
|
|
public class Intermediate extends Base {
|
|
public Intermediate(String foo) {
|
|
super(foo);
|
|
}
|
|
}
|
|
|
|
// FILE: FinalAndBase.kt
|
|
abstract class Base(private val foo: String) {
|
|
fun getFoo() = foo
|
|
}
|
|
|
|
class Final(val i: Intermediate) : Intermediate(i.foo)
|
|
|
|
fun box(): String = Final(Intermediate("OK")).foo
|