if it's an expression, it still needs to have a ty...
# getting-started
k
if it's an expression, it still needs to have a type, from what I know. Your best bet is
Copy code
when(cond) {
    branch -> {
        if (otherCond) foo()
    }
}