FIR: Refine visibility check for class members

This commit is contained in:
Denis.Zharkov
2021-10-18 12:21:57 +03:00
committed by TeamCityServer
parent d702365632
commit fba44759c0
23 changed files with 246 additions and 26 deletions
@@ -0,0 +1,24 @@
// SKIP_TXT
open class BaseWithPrivate {
private companion object {
val X: Int = 1
val Y: Int = 1
}
}
open class Base {
companion object {
val X: String = ""
}
}
class Derived : Base() {
fun foo() {
object : BaseWithPrivate() {
fun bar() {
X.length
<!INVISIBLE_MEMBER!>Y<!>.hashCode()
}
}
}
}