[FIR] Fix overload conflicts resolution for callable references with defaults
This commit is contained in:
committed by
teamcityserver
parent
e3b92fd561
commit
1a3b5657c7
+29
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user