Why is it not possible to infer the type of a vari...
# announcements
k
Why is it not possible to infer the type of a variable within a
when
like:
Copy code
val variable: Any = "some string"
when (variable) {
  "some string" -> println(variable) // variable isn't smart-casted to string!
}