FE: add & fix test with intersection property shadowed by base field

This commit is contained in:
Mikhail Glukhikh
2022-12-20 15:03:34 +01:00
committed by teamcity
parent 949a39b80f
commit 7904f23660
13 changed files with 177 additions and 16 deletions
@@ -0,0 +1,27 @@
FILE: test.kt
public abstract interface Proxy : R|kotlin/Any| {
public abstract val x: R|kotlin/String|
public get(): R|kotlin/String|
}
public open class Intermediate : R|Base| {
public constructor(): R|Intermediate| {
super<R|Base|>()
}
public final val x: R|kotlin/String|
public get(): R|kotlin/String| {
^ String( )
}
}
public final class Derived : R|Proxy|, R|Intermediate| {
public constructor(): R|Derived| {
super<R|Intermediate|>()
}
public final fun test(): R|kotlin/Unit| {
this@R|/Derived|.R|/Proxy.x|
}
}