Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/overloadResolutionWithDefaults.kt
T

30 lines
548 B
Kotlin
Vendored

// FIR_IDENTICAL
class ShortenReferences {
companion object {
val DEFAULT = ShortenReferences()
}
fun process(
element: String,
elementFilter: (String) -> Int = { 10 },
actionRunningMode: String = ""
): String {
return "hello"
}
fun process(
element: String,
elementFilter: (String) -> Int = { 10 },
): String {
return "hello"
}
}
fun takeReference(block: (String) -> Unit) {}
fun test() {
takeReference(ShortenReferences.DEFAULT::process)
}