Restore error when no default value is found for a switch expression