d92ccad35d
On the other hand, argument states do not propagate to successor statements for a safe call. #KT-7204 Fixed. A few additional comments.
9 lines
284 B
Kotlin
Vendored
9 lines
284 B
Kotlin
Vendored
fun foo(x: String): String? = x
|
|
|
|
fun calc(x: String?): Int {
|
|
// Smart cast because of x!! in receiver
|
|
foo(x!!)?.subSequence(0, <!DEBUG_INFO_SMARTCAST!>x<!>.length())?.length()
|
|
// Smart cast because of x!! in receiver
|
|
return <!DEBUG_INFO_SMARTCAST!>x<!>.length()
|
|
}
|