mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
16 lines
242 B
Kotlin
Vendored
16 lines
242 B
Kotlin
Vendored
class A {
|
|
operator fun component1() = 1
|
|
operator fun component1() = 1
|
|
operator fun component2() = 1
|
|
}
|
|
|
|
class C {
|
|
operator fun iterator(): Iterator<A> = null!!
|
|
}
|
|
|
|
fun test() {
|
|
for ((<!AMBIGUITY!>x<!>, y) in C()) {
|
|
|
|
}
|
|
}
|