FIR Java: correctly handle overridden Kotlin properties in use-site scope

This commit is contained in:
Mikhail Glukhikh
2019-05-24 13:44:04 +03:00
parent 56435fa283
commit 806d2d628c
9 changed files with 121 additions and 47 deletions
@@ -0,0 +1,23 @@
FILE: Base.kt
public open class Base : R|kotlin/Any| {
public constructor(): R|Base| {
super<R|kotlin/Any|>()
}
public open val some: R|kotlin/String|
public get(): R|kotlin/String| {
^ String(Base)
}
}
public open class Derived : R|Base| {
public constructor(): R|Derived| {
super<R|Base|>()
}
public open override val some: R|kotlin/String|
public get(): R|kotlin/String| {
^ String(Derived)
}
}