SI-6162 Adds private[scala] @deprecatedInheritance/@deprecatedOverriding #1284
These annotations are meant to warn from inheriting a class or from overriding a member, due to the reasons given in `msg`. The naming and placement of the methods is in line with @deprecated and @deprecatedName.
While they ought to be generalized to aribirary modifier changes before being offered in the standard library, the opportunity to use them in 2.10 is too important to pass up. So for now, they're private[scala]. En route: - made the error messages more concise - fix positioning of inheritance error - improve test coverage
I can't squash it right now, but feel free to do so when merging. Personally, I like leaving a single "pull request feedback" commit (maybe itself squashed with a few iterations of feedback.) in the history, so long as the previous commits are not broken.
I agree that leaving them is fine but I'd prefer to have a bit better commit message than just
This commit is trivial so
For this one I'll go ahead and merge.