Tolriq
11/25/2018, 1:10 PMclass Item(var name: String? = null)
val item = Item()
fun test() {
if (!item.name.isNullOrEmpty()) {
var t: String = item.name
}
}
Is the reason why It's not Kotlinish for nullability handling. Compiler can't smart cast to String.