mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
226 B
Kotlin
Vendored
12 lines
226 B
Kotlin
Vendored
class Coll {
|
|
operator fun iterator(): It? = null
|
|
}
|
|
|
|
class It {
|
|
operator fun next() = 1
|
|
operator fun hasNext() = false
|
|
}
|
|
|
|
fun test() {
|
|
for (x in <!HAS_NEXT_FUNCTION_NONE_APPLICABLE, NEXT_NONE_APPLICABLE!>Coll()<!>) {}
|
|
} |