FIR: use SyntheticPropertySymbol & synthetic scope instead of FirAccessorSymbol
Before this commit, we used FirAccessorSymbol to emulate synthetic properties. These symbols were generated in Java use-site scope. Now, we use synthetic scope instead which is above MemberScopeTowerLevel. This is more performance-friendly and does not require override matching. However, accessor symbols should be used in situation when Java accessor overrides Kotlin property which is broken in this commit (that's why MapEntry test is corrupted here). Also, we should not create synthetics for pure Kotlin accessors (that's why javaAccessorConversion test is corrupted here).
This commit is contained in:
@@ -5,7 +5,7 @@ FILE: Test.kt
|
||||
}
|
||||
|
||||
public final fun test(): R|kotlin/Int| {
|
||||
^test R|/Inheritor.x|
|
||||
^test this@R|/Base|.R|/Base.x|
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user