I just tried this, and smartcast wasn't working. S...
# announcements
k
I just tried this, and smartcast wasn't working. Should this be filed as a bug?
Copy code
fun sample(nullableString: String?) {
    val length = nullableString?.length ?: return
    val notNullString: String = nullableString // ERROR!
}