is it that hard for compiler to infer non-null for...
# getting-started
d
is it that hard for compiler to infer non-null for this condition? or maybe I miss something:
Copy code
data class Response(val name: String?)

fun handle(response: Response?) {
    if (response?.name != null) {
        println("Name: ${response.name}")
    }
}