Files
kotlin-fork/compiler/testData/ir/irText/firProblems/SignatureClash.kt
T
2020-10-22 13:04:59 +03:00

22 lines
350 B
Kotlin
Vendored

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