KT-2632 Check multi-declaraions in for-loops

#KT-2632 Fixed
This commit is contained in:
Andrey Breslav
2012-08-21 19:49:14 +04:00
parent 22974391eb
commit 5b77210c95
10 changed files with 174 additions and 1 deletions
@@ -0,0 +1,14 @@
class A {
}
fun A.component1() = 1
fun A.component2() = 1
class C {
fun iterator(): Iterator<A> = null!!
}
fun test() {
for ((x, y) in C()) {
}
}