f2c651ec9c
#KT-42771 Fixed
22 lines
350 B
Kotlin
Vendored
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 |