KT-1478 Quick fix for using nullable collection in "for in" expression
#KT-1478 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
class Some {
|
||||
operator fun iterator(): Iterator<Int> = null!!
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
val test: Some? = Some()
|
||||
for (i in test!!) { }
|
||||
}
|
||||
Reference in New Issue
Block a user