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