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

12 lines
340 B
Plaintext

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