Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt
T
Denis Zharkov e2099a0307 FIR: Fix false-positive successful resolution of call with lambda receiver
Do not try to integrate/postpone receiver expression to the base system
Receiver should be resolved independently anyway
2020-11-16 15:50:39 +03:00

15 lines
192 B
Kotlin
Vendored

fun (() -> String).foo() {}
fun String.foo() {}
fun String.bar() {}
fun main1() {
{ "" }.foo()
"".foo()
}
fun main2() {
{ "" }.<!INAPPLICABLE_CANDIDATE!>bar<!>()
"".bar()
}