f45d92eebc
While not beeing final solution, this is closer to what we want to have in the end. Enabling on non-JVM targets would help better testing. Enabling in JVM is now not possible yet, as some of the bugs are not fixed yet (check KT-61360 for details) ^KT-62476
26 lines
409 B
Kotlin
Vendored
26 lines
409 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-64271
|
|
// IGNORE_BACKEND_K2: JVM_IR
|
|
|
|
typealias Some = (Any) -> String?
|
|
|
|
object Factory {
|
|
fun foo(
|
|
a: String,
|
|
): String = "Alpha"
|
|
|
|
fun foo(
|
|
a: String,
|
|
f: Some
|
|
): String = "Omega"
|
|
}
|
|
|
|
interface Base
|
|
|
|
interface Delegate : Base {
|
|
fun bar()
|
|
}
|
|
|
|
interface Derived : Delegate
|
|
|
|
data class DataClass(val delegate: Delegate): Derived, Delegate by delegate |