Files
2015-10-07 08:46:34 +03:00

7 lines
315 B
Kotlin
Vendored

fun calc(x: List<String>?, y: List<Int>?) {
// x and y should be non-null in arguments list, despite of a chains
x?.subList(y?.subList(1, 2)?.get(<!DEBUG_INFO_SMARTCAST!>y<!>.size) ?: 0,
y?.get(0) ?: 1) // But safe call is NECESSARY here for y
?.get(<!DEBUG_INFO_SMARTCAST!>x<!>.size)
}