Files
2015-10-14 20:39:35 +03:00

6 lines
162 B
Kotlin
Vendored

data class MyClass(val x: String?)
fun foo(y: MyClass): Int {
val z = y.x?.subSequence(0, <!DEBUG_INFO_SMARTCAST!>y.x<!>.length)
return z?.length ?: -1
}