vaskir
when (x) { is Foo && x.aFooField > 10 -> ... }
Andreas Sinz
when { x is Foo && x.aFooField > 10 -> ... }
when (x)