Files
2021-06-10 16:01:13 +03:00

15 lines
351 B
Kotlin
Vendored

// FIR_IDENTICAL
public class X {
private val x : String? = null
public val y: CharSequence?
get() = x?.subSequence(0, 1)
public fun fn(): Int {
if (y != null)
// With non-default getter smartcast is not possible
return <!SMARTCAST_IMPOSSIBLE!>y<!>.length
else
return 0
}
}