JVM_IR: fix copying of receivers when unboxing inline class parameters
If an extension receiver is copied into a normal parameter, this may later cause default argument masks to be shifted.
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
package z
|
||||
|
||||
inline class Z(val s: String)
|
||||
|
||||
class X {
|
||||
fun Int.foo(z: Z, value: String = "OK") = value
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
import z.*
|
||||
|
||||
fun box(): String = with(X()) { 1.foo(Z("")) }
|
||||
Reference in New Issue
Block a user