[FE 1.0] Report warning on non-deprecated overrides of deprecated members

Also don't propagate deprecation status to overrides after 1.7

^KT-47902 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-08-27 15:14:39 +03:00
parent 762d225bd7
commit ef9ad5af51
25 changed files with 993 additions and 52 deletions
@@ -3,7 +3,7 @@
interface A : MutableCollection<String> {
// Override of deprecated function could be marked as deprecated too
override fun nonExistingMethod(x: String) = ""
override fun <!OVERRIDE_DEPRECATION!>nonExistingMethod<!>(x: String) = ""
}
fun foo(x: MutableCollection<Int>, y: Collection<String>, z: A) {