Files
kotlin-fork/compiler/testData/ir/irText/firProblems/SignatureClash.kt
T
Pavel Kunyavskiy f45d92eebc [K/N, K/JS, K/WASM] Enable FakeOverrideRebuilder by default
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
2024-01-08 07:46:07 +00:00

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