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