K2: use correct scope for overrides calculation in ObjCName checker

To call retrieveDirectOverriddenOf,
one must use directly the owner scope of a callable symbol we consider,
and not a scope of some derived class.

#KT-64276 Fixed
This commit is contained in:
Mikhail Glukhikh
2024-01-05 10:29:37 +01:00
committed by Space Team
parent e4c244d5db
commit 3d560cd92c
3 changed files with 30 additions and 6 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ interface DerivedI1 : I1 {
override fun foo()
}
<!INCOMPATIBLE_OBJC_NAME_OVERRIDE!>abstract class KT64276 : Base(), DerivedI1 {}<!>
abstract class KT64276 : Base(), DerivedI1 {}
private const val exact = false
private const val objcName = "nonLiteralArgsObjC"