scala/scala — pull request #1026 by soc (2012-07-30 23:57:08+00:00)
Title: SI-6162 Adds @deprecatedInheritance to dissuade from inheriting a class

!!!WIP!!!

I added some preliminary implementation of deprecatedInheritance.

One issue with the current code is that I get 2 warnings (this issue gets hidden in the test due to -Xfatal-warnings). I tried `psym != selfType.typeSymbol && psym.hasDeprecatedInheritanceAnnotation` and similar stuff to catch the duplicate warning, but didn't figure it out yet.

I think if we want something like deprecatedOverride, it should be an additional annotation, so that the meaning and behaviour of each is clearly defined.

Review: @retronym @paulp