fun test(f: Foo) { for(i in f) {} } interface Foo fun Foo.iterator(): Iterator interface Iterator fun Iterator.next(): Any fun Iterator.hasNext(): Boolean