hmm, i think i've found it `when(A) A@ {...`
# announcements
a
hmm, i think i've found it
when(A) A@ {...
m
In Kotlin 1.3 you can do
Copy code
when (val a = A) {
    is Int -> when (B) {
        is String -> doSomething(a)
    }
}
Important part is
when (val a = A) {
.
a
Sorry i derped, it should be
with
not when
i can't type this morning