Can methods like `String.isNullOrBlank` smart cast...
# announcements
e
Can methods like
String.isNullOrBlank
smart cast to not null? For instance, the following function won't compile:
Copy code
class Test(val name: String?)

fun test(test: Test): String {
  val name = test.name
  if(name.isNullOrBlank()) {
    "null or blank"
  }
  else {
    name
  }
}