holgerbrandl
val sumValue: Any? = ... when (sumValue) { is Int -> "foo" is null -> "bar" // this is not valid kotlin else -> throw UnsupportedOperationException() }