class A { operator fun component1() = 1 } class C { operator fun iterator(): Iterator = null!! } fun test() { for ((x) in C()) { } }