mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
15 lines
161 B
Kotlin
15 lines
161 B
Kotlin
class A {
|
|
}
|
|
fun A.component1() = 1
|
|
fun A.component2() = 1
|
|
|
|
class C {
|
|
fun iterator(): Iterator<A> = null!!
|
|
}
|
|
|
|
fun test() {
|
|
for ((x, y) in C()) {
|
|
|
|
}
|
|
}
|