15 lines
227 B
Kotlin
Vendored
15 lines
227 B
Kotlin
Vendored
class A {
|
|
operator fun component1() = 42
|
|
operator fun component2() = 42
|
|
}
|
|
|
|
fun foo(a: A, c: Int) {
|
|
val (a, b) = a
|
|
val arr = Array(2) { A() }
|
|
for ((c, d) in arr) {
|
|
|
|
}
|
|
|
|
val e = a.toString() + b + c
|
|
}
|