1d9247ae0f
`iterator()` function that does NOT have `operator` modifier. This is different from FE1.0. Adding `!!` will then surface the error that `operator` modifier needs to be added (with corresponding fix).
11 lines
178 B
Kotlin
Vendored
11 lines
178 B
Kotlin
Vendored
// "Add non-null asserted (!!) call" "true"
|
|
|
|
class Some {
|
|
fun iterator(): Iterator<Int> = null!!
|
|
}
|
|
|
|
fun foo() {
|
|
val test: Some? = Some()
|
|
for (i in <caret>test) { }
|
|
}
|