Can null be matched in when? Here's a (non-working...
# getting-started
h
Can null be matched in when? Here's a (non-working) example:
Copy code
val sumValue: Any? = ...
when (sumValue) {
    is Int -> "foo"
    is null -> "bar" // this is not valid kotlin
    else -> throw UnsupportedOperationException()
}