40 lines
1.2 KiB
Plaintext
Vendored
40 lines
1.2 KiB
Plaintext
Vendored
FILE: destructuring.kt
|
|
public? final? data class Some : kotlin/Any {
|
|
public? constructor(first: Int, second: Double, third: String): R|Some| {
|
|
super<kotlin/Any>()
|
|
}
|
|
|
|
public? final? val first: Int = R|<local>/first|
|
|
public? get(): Int
|
|
|
|
public? final? val second: Double = R|<local>/second|
|
|
public? get(): Double
|
|
|
|
public? final? val third: String = R|<local>/third|
|
|
public? get(): String
|
|
|
|
public final fun component1(): <implicit> {
|
|
^component1 R|/Some.first|
|
|
}
|
|
|
|
public final fun component2(): <implicit> {
|
|
^component2 R|/Some.second|
|
|
}
|
|
|
|
public final fun component3(): <implicit> {
|
|
^component3 R|/Some.third|
|
|
}
|
|
|
|
}
|
|
public? final? fun foo(some: Some): kotlin/Unit {
|
|
lval <destruct>: <implicit> = some#
|
|
lvar x: <implicit> = <destruct>#.component1()
|
|
lvar y: <implicit> = <destruct>#.component2()
|
|
lvar z: String = <destruct>#.component3()
|
|
lval <unary>: <implicit> = x#
|
|
x# = inc#(<unary>#)
|
|
<unary>#
|
|
y# *= Double(2.0)
|
|
z# = String()
|
|
}
|