Answer:
ex post facto law
Step-by-step explanation:
Based on the information provided within the question it can be said that in this scenario Bob seems to be the victim of an ex post facto law. This is a type of law that changes the legal consequences that were put into effect in the past, before this new law was introduced. Which is why Bob is being arrested even though at the time of purchasing the beer, he was doing it legally.