29 lines
495 B
Plaintext
29 lines
495 B
Plaintext
== C ==
|
|
class C {
|
|
fun component1() = 1
|
|
fun component2() = 2
|
|
}
|
|
---------------------
|
|
=====================
|
|
== component1 ==
|
|
fun component1() = 1
|
|
---------------------
|
|
1 <v0> NEW()
|
|
=====================
|
|
== component2 ==
|
|
fun component2() = 2
|
|
---------------------
|
|
2 <v0> NEW()
|
|
=====================
|
|
== test ==
|
|
fun test(c: C) {
|
|
val (a, b) = c
|
|
val d = 1
|
|
}
|
|
---------------------
|
|
a <v2> NEW(<v1>)
|
|
b <v3> NEW(<v1>)
|
|
c <v1> NEW()
|
|
1 <v4> NEW()
|
|
=====================
|