dimsuz
02/17/2017, 12:30 PMx
to the function, ala
when(x) {
is SomeException -> do1()
isSomeComplexExceptionCond(x) -> do2()
}
but I guess this is impossible and I need to use arugment-less when
instead:
when {
x is SomeException ->
// etc
}