[FIR] Report OVERRIDE_DEPRECATION for overrides of HIDDEN_IN_DECLARING_CLASS_ONLY

#KT-65438 Fixed
This commit is contained in:
Kirill Rakhman
2024-02-06 16:03:29 +01:00
committed by Space Team
parent 24367e0ad8
commit e8cbd8a1cd
3 changed files with 34 additions and 8 deletions
@@ -10,8 +10,8 @@ class A<T> : ArrayList<T>() {
super.addLast(t)
}
override fun getFirst(): T = super.<!DEPRECATION!>getFirst<!>()
override fun getLast(): T = super.<!DEPRECATION!>getLast<!>()
override fun <!OVERRIDE_DEPRECATION!>getFirst<!>(): T = super.<!DEPRECATION!>getFirst<!>()
override fun <!OVERRIDE_DEPRECATION!>getLast<!>(): T = super.<!DEPRECATION!>getLast<!>()
override fun removeFirst(): T = super.removeFirst()
override fun removeLast(): T = super.removeLast()