<@U1600MBT7> that works ``` fun whenShouldCoverAll...
# getting-started
c
@christoph.pickl that works
Copy code
fun whenShouldCoverAllBranches(result: Result) =
    when (result) {
        Result.Ok -> Unit // succeeded
        Result.Fail -> throw Exception()
    }
😍 1