Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt
T
2021-08-25 21:53:23 +00:00

15 lines
205 B
Kotlin
Vendored

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