// "Create member function 'FooIterator.hasNext'" "true" class FooIterator { operator fun next(): Int { throw Exception("not implemented") } } class Foo { operator fun iterator(): FooIterator { throw Exception("not implemented") } } fun foo() { for (i: Int in Foo()) { } }