[FIR] Report deprecation on synthetic property calls on super receivers

#KT-65438 Fixed
This commit is contained in:
Kirill Rakhman
2024-02-13 18:07:46 +01:00
committed by Space Team
parent 35e9170af1
commit e39af4583e
7 changed files with 64 additions and 40 deletions
@@ -1,5 +1,7 @@
// ISSUE: KT-58371
// RENDER_DIAGNOSTICS_FULL_TEXT
// DIAGNOSTICS: -SUPER_CANT_BE_EXTENSION_RECEIVER
// ^Otherwise only K1 errors are written to .diag file.
class A<T> : ArrayList<T>() {
override fun addFirst(t: T) {
@@ -13,6 +15,9 @@ class A<T> : ArrayList<T>() {
override fun <!OVERRIDE_DEPRECATION!>getFirst<!>(): T = super.<!DEPRECATION!>getFirst<!>()
override fun <!OVERRIDE_DEPRECATION!>getLast<!>(): T = super.<!DEPRECATION!>getLast<!>()
fun superFirst2(): T = super.<!DEPRECATION!>first<!>
fun superLast2(): T = super.<!DEPRECATION!>last<!>
override fun removeFirst(): T = super.removeFirst()
override fun removeLast(): T = super.removeLast()