b2fbf8bed5
Provide the correct scope to the argument mapping so that default values in overridden functions are considered. ^KT-56864 Fixed
25 lines
347 B
Kotlin
Vendored
25 lines
347 B
Kotlin
Vendored
// SKIP_TXT
|
|
// FIR_IDENTICAL
|
|
|
|
interface Some {
|
|
fun foo(b: Boolean? = null): Int = 10
|
|
}
|
|
|
|
class SomeImpl : Some {
|
|
override fun foo(b: Boolean?): Int {
|
|
return 0
|
|
}
|
|
|
|
private fun buz() {
|
|
bar(::foo)
|
|
}
|
|
}
|
|
|
|
private fun buz() {
|
|
bar(SomeImpl()::foo)
|
|
}
|
|
|
|
private fun <T> bar(actionForAll: () -> T) {
|
|
actionForAll()
|
|
}
|