What I’d like to have is ability to declare `val` ...
# random
o
What I’d like to have is ability to declare
val
in when:
Copy code
when (val buf = buffer) {
 null ->
 else -> // buf is smart-casted
}