1190457759
If an extension receiver is copied into a normal parameter, this may later cause default argument masks to be shifted.
15 lines
223 B
Kotlin
Vendored
15 lines
223 B
Kotlin
Vendored
// !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("")) }
|