mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
16 lines
232 B
Kotlin
16 lines
232 B
Kotlin
class Coll {
|
|
fun iterator(): It = It()
|
|
}
|
|
|
|
class It {
|
|
fun next() = 1
|
|
fun hasNext() = false
|
|
}
|
|
|
|
fun test(c: Coll?) {
|
|
for (x in <!ITERATOR_MISSING!>c<!>) {}
|
|
|
|
if (c != null) {
|
|
for(x in <!DEBUG_INFO_SMARTCAST!>c<!>) {}
|
|
}
|
|
} |