Files
kotlin-fork/compiler/visualizer/testData/rawBuilder/expressions/destructuring.kt
T

24 lines
485 B
Kotlin
Vendored

// FIR_IGNORE
data class Some(val first: Int, val second: Double, val third: String)
fun foo(some: Some) {
// Int
// │ Double
// │ │ String foo.some: Some
// │ │ │ │
var (x, y, z: String) = some
// var foo.x: Int
// │fun (Int).inc(): Int
// ││
x++
// var foo.y: Double
// │ fun (Double).times(Double): Double
// │ │ Double
// │ │ │
y *= 2.0
// var foo.z: String
// │
z = ""
}