Files
2024-04-15 11:52:39 +00:00

13 lines
306 B
Kotlin

// "Add non-null asserted (test!!) call" "false"
// ACTION: Surround with null check
// ERROR: Not nullable value required to call an 'iterator()' method on for-loop range
class Some {
fun iterator(): Iterator<Int> = null!!
}
fun foo() {
val test: Some? = Some()
for (i in <caret>test) { }
}