12 lines
169 B
Kotlin
Vendored
12 lines
169 B
Kotlin
Vendored
fun test(f: Foo) {
|
|
for(i <caret>in f) {}
|
|
}
|
|
|
|
interface Foo
|
|
fun Foo.iterator(): Iterator
|
|
|
|
interface Iterator
|
|
|
|
fun Iterator.next(): Any
|
|
fun Iterator.hasNext(): Boolean
|