blob: 17e42cdb0e94dce71006be01f1bda8eab806db95 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test {
def main(args: Array[String]): Unit = {
val it = List(1).iterator ++ { println("Hello"); Iterator.empty }
println(it.next)
it.hasNext
it.hasNext
it.hasNext
}
}
|