There should be a word for the practice of saying something…..and then declaring that you’re not allowed to say that thing that you just said

Any suggestions?