[light classes] Improve isEquivalence checks

^KTIJ-25412

Update equivalence checks for light accessor methods and light fields
 to make them equivalent if they share the same underlying property.
 Follow the `kotlinOrigin` declaration:
 even if there is a property accessor,
 use property declaration.
This commit is contained in:
Anna Kozlova
2023-06-10 12:59:24 +02:00
committed by Space Team
parent 0252f7c586
commit 57f429206c
5 changed files with 28 additions and 1 deletions
@@ -0,0 +1,6 @@
// org.jetbrains.kotlin.light.classes.symbol.fields.SymbolLightFieldForProperty
class FooBar {
var f<caret>oo : String = "42"
get() = "42"
}