FIR2IR: Fix incorrect conversion of adapted callable references with receiver

This commit is contained in:
Denis.Zharkov
2021-03-26 18:43:27 +03:00
parent 1f074326bf
commit a130b110f1
7 changed files with 39 additions and 5 deletions
@@ -1,6 +1,5 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: BINDING_RECEIVERS
// IGNORE_BACKEND_FIR: JVM_IR
import Host.foo
@@ -0,0 +1,10 @@
// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME
fun MutableSet<CharSequence>.foo(s: CharSequence): Set<CharSequence> {
s.also(::add)
return this
}
fun box(): String = mutableSetOf<CharSequence>().foo("OK").single() as String