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,23 @@
// WITH_STDLIB
// FIR_DUMP
// FILE: Base.java
public class Base {
public String x = "";
}
// FILE: test.kt
interface Proxy {
val x: String
}
open class Intermediate : Base() {
val x get() = " "
}
class Derived : Proxy, Intermediate() {
fun test() {
<!BASE_CLASS_FIELD_SHADOWS_DERIVED_CLASS_PROPERTY!>x<!>
}
}