mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
#KT-3574 Fixed Do not assert that resolvedCall is non-null, since getRangeAsBinaryCall can return a BinaryCall that doesn't represent a range at all (as specified by the comment in getRangeAsBinaryCall)
10 lines
136 B
Kotlin
10 lines
136 B
Kotlin
fun nil() = null
|
|
|
|
fun list() = java.util.Arrays.asList("1")
|
|
|
|
fun box(): String {
|
|
for (x in nil()?:list()) {
|
|
}
|
|
return "OK"
|
|
}
|