3279313f2c
See K1 counterpart at org.jetbrains.kotlin.resolve.calls.tower.TowerResolver.Task.processImplicitReceiver ^KT-58943 Fixed ^KT-59541 Fixed
17 lines
484 B
Kotlin
Vendored
17 lines
484 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-58943
|
|
|
|
class A {
|
|
fun bar() {
|
|
val foo: String.() -> Int = { 1 } // (1)
|
|
fun String.foo(): String = "" // (2)
|
|
with("2") {
|
|
// In K1, foo variable + invokeExtension on implicit receiver is more prioritized than `foo() + implicit receiver`
|
|
// So, for now, we're going to preserve that behavior in K2
|
|
// For design, see KT-59528
|
|
takeInt(foo())
|
|
}
|
|
}
|
|
}
|
|
|
|
fun takeInt(x: Int) {} |