c344b85d4e
#KT-17615 Fixed #KT-30028 Fixed #KT-32809 Fixed #KT-28085 Fixed #KT-37508 Fixed Convert receiver to parameter: #KT-37508 Fixed
17 lines
297 B
Kotlin
Vendored
17 lines
297 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
class C(val x: Int, val y: Int, var z: Int)
|
|
|
|
class CBuilder {
|
|
var x: Int = 0
|
|
var y: Int = 0
|
|
fun build() = C(x, y, 0)
|
|
}
|
|
|
|
fun test(<caret>a: C) =
|
|
CBuilder().apply {
|
|
x = a.x
|
|
y = a.y
|
|
}.build().apply {
|
|
val b = this
|
|
z = b.x + b.y
|
|
} |