Files
openide/plugins/kotlin/idea/tests/testData/quickfix/addExclExclCall/iterableDoesNotInheritIterableInterface.kt
2024-04-15 11:52:39 +00:00

12 lines
345 B
Kotlin

// "Add non-null asserted (test!!) call" "true"
class Some {
operator fun iterator(): Iterator<Int> = null!!
}
fun foo() {
val test: Some? = Some()
for (i in <caret>test) { }
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddExclExclCallFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddExclExclCallFix