Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/safecalls/longChain.fir.kt
T

7 lines
172 B
Kotlin
Vendored

fun calc(x: List<String>?) {
// x should be non-null in arguments list, despite of a chain
x?.subList(0, x.size)?.
subList(0, x.size)?.
get(x.size)
}