Files
kotlin/compiler/testData/diagnostics/tests/declarationChecks/multiDeclarations/ForLoopWithExtensions.kt
2015-09-25 19:20:20 +03:00

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()) {
}
}