[FIR] Allow accessing protected members via local inheritors

^KT-65058 Fixed
This commit is contained in:
Nikolay Lunyak
2024-01-26 12:41:53 +02:00
committed by Space Team
parent b6e913cde7
commit 4ee03a3a0c
4 changed files with 23 additions and 19 deletions
@@ -1,12 +0,0 @@
// ISSUE: KT-65058
open class A {
protected fun foo() {
}
}
<!NOTHING_TO_INLINE!>inline<!> fun bar() = object : A() {
fun baz() {
<!PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR!>foo<!>()
}
}