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