[FIR] Fix overload conflicts resolution for callable references with defaults

This commit is contained in:
Dmitriy Novozhilov
2021-05-13 12:40:58 +03:00
committed by teamcityserver
parent e3b92fd561
commit 1a3b5657c7
8 changed files with 77 additions and 1 deletions
@@ -0,0 +1,29 @@
// 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)
}