While we are at it is there any way to match or de...
# announcements
r
While we are at it is there any way to match or destructure properties of nested classes in
when
statements? For example if I have a:
Copy code
data class X(a: Int)
data class Y(b: Int, x: X)
when (Y(1, X(2)) {
   is Y(_, X(z)) -> use z here
}
Or do I have to refer to the property by path access
y.x.a
?