```when``` should be at the same level as ```case```.