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