karelpeeters
class Foo() { operator fun next() = 1 operator fun hasNext() = true } for (i in MyObj()) { println(i) }
1