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,16 @@
fun test(f: Foo) {
for(i <caret>in f) {}
}
trait Foo
fun Foo.iterator(): Iterator
trait Iterator
fun Iterator.next(): Any
fun Iterator.hasNext(): Boolean
// MULTIRESOLVE
// REF: (for Foo in <root>).iterator()
// REF: (for Iterator in <root>).next()
// REF: (for Iterator in <root>).hasNext()