mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
15 lines
232 B
Kotlin
Vendored
15 lines
232 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 ((<!UNUSED_VARIABLE!>x<!>, <!UNUSED_VARIABLE!>y<!>) in C()) {
|
|
|
|
}
|
|
}
|