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