FIR2IR: Fix incorrect conversion of adapted callable references with receiver
This commit is contained in:
-1
@@ -1,6 +1,5 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: BINDING_RECEIVERS
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
import Host.foo
|
||||
|
||||
|
||||
+10
@@ -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
|
||||
Reference in New Issue
Block a user