e2099a0307
Do not try to integrate/postpone receiver expression to the base system Receiver should be resolved independently anyway
15 lines
192 B
Kotlin
Vendored
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()
|
|
}
|