raulraja
when
data class X(a: Int) data class Y(b: Int, x: X) when (Y(1, X(2)) { is Y(_, X(z)) -> use z here }
y.x.a