Files
kotlin-fork/idea/testData/quickfix/expressions/fixNullableWithIteratorWithExclExcl.kt
T
2015-10-28 13:39:49 +03:00

10 lines
186 B
Kotlin
Vendored

// "Add non-null asserted (!!) call" "true"
class Some {
operator fun iterator(): Iterator<Int> = null!!
}
fun foo() {
val test: Some? = Some()
for (i in <caret>test) { }
}