Interesting, that without a lambda it works fine: ...
# announcements
o
Interesting, that without a lambda it works fine:
Copy code
val x : Any? = ""
    val s : String = when (x) {
        is String -> x
        else -> throw RuntimeException()
    }