Files
kotlin-fork/idea/testData/quickfix/addExclExclCall/iterableInExtension.kt
T
Mark Punzalan c472c9facd IDE: Don't add this!! in AddExclExclCallFix for nullable member
access in extension function.

^KTIJ-10052 Fixed
2021-05-20 20:32:55 +02:00

12 lines
179 B
Kotlin
Vendored

// "Add non-null asserted (!!) call" "true"
// WITH_RUNTIME
class C {
val list: List<String>? = null
}
// Test for KTIJ-10052
fun C.test() {
for (s in <caret>list) {}
}