FIR2IR: Fix incorrect conversion of adapted callable references with receiver
This commit is contained in:
+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