Files
kotlin/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopComponentFunctionMissing.kt

14 lines
213 B
Kotlin
Vendored

class A {
operator fun component1() = 1
}
class C {
operator fun iterator(): Iterator<A> = null!!
}
fun test() {
for ((x, <!UNUSED_VARIABLE!>y<!>) in <!COMPONENT_FUNCTION_MISSING!>C()<!>) {
}
}