Files
kotlin/compiler/testData/diagnostics/tests/declarationChecks/multiDeclarations/SingleDeclForLoop.kt
Andrey Breslav 5b77210c95 KT-2632 Check multi-declaraions in for-loops
#KT-2632 Fixed
2012-08-21 19:49:26 +04:00

13 lines
136 B
Kotlin

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