FIR: disable synthetic scope, make accessor symbols synthetic

Before this commit, we had two methods to do generally the same synthetic thing.
It's an attempt to keep only one of them.
Accessor symbols are generated in Java use-site member scopes,
at this place we know better whether we are in Java class or not.
However, we have to do this at every use-site level, which is relatively slow.
Also we could encounter problems when accessor function is overridden in Kotlin,
and accessor symbol can still contain reference to Java accessor.
This commit is contained in:
Mikhail Glukhikh
2019-11-21 15:07:22 +03:00
parent 2f9c94bd9e
commit f1eb0dff1f
15 changed files with 23 additions and 20 deletions
@@ -4,7 +4,7 @@ FILE: Derived.kt
super<R|Base|>()
}
public final fun getValue(): <ERROR TYPE REF: cycle> {
public final fun getValue(): R|kotlin/Int| {
^getValue this@R|/Base|.R|/Base.value|
}