Navigation to iterator(), next(), hasNext() through 'in' in for-loops

This commit is contained in:
Andrey Breslav
2013-08-28 14:39:45 +04:00
parent 6fcccff31b
commit a53986e1d6
11 changed files with 260 additions and 1 deletions
@@ -0,0 +1,17 @@
fun test(f: Foo) {
for(i <caret>in f) {}
}
trait Foo {
fun iterator(): Iterator
}
trait Iterator {
fun next(): Any
fun hasNext(): Boolean
}
// MULTIRESOLVE
// REF: (in Foo).iterator()
// REF: (in Iterator).next()
// REF: (in Iterator).hasNext()