`when { foo is A && foo !is B -> {} }` ...
# announcements
s
when { foo is A && foo !is B -> {} }
should work