d92ccad35d
On the other hand, argument states do not propagate to successor statements for a safe call. #KT-7204 Fixed. A few additional comments.
5 lines
159 B
Kotlin
Vendored
5 lines
159 B
Kotlin
Vendored
fun calc(x: List<String>?, y: Int?) {
|
|
// Smart cast should work here despite of KT-7204 fixed
|
|
x?.subList(0, y!!)?.get(<!DEBUG_INFO_SMARTCAST!>y<!>)
|
|
}
|