Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question I am trying to deprecate property of class. Expected behaviour: If user tries to use variable 2 he should get