816c66063b
#KT-3602 Fixed
13 lines
314 B
Kotlin
Vendored
13 lines
314 B
Kotlin
Vendored
// "Add non-null asserted (!!) call" "false"
|
|
// ACTION: Replace with a 'forEach' function call
|
|
// 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) { }
|
|
}
|