Navigation to iterator(), next(), hasNext() through 'in' in for-loops
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user