FE: fix effective visibility bound calculation logic

#KT-58757 Fixed
#KT-58840 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-05-19 17:42:36 +02:00
committed by Space Team
parent c130786889
commit 2fcd296db8
3 changed files with 6 additions and 15 deletions
@@ -1,10 +0,0 @@
// ISSUE: KT-58757
internal abstract class Foo {
abstract val context: CharSequence
}
internal abstract class Bar(protected val foo: Foo) {
protected inline val inlineContext: String
get() = <!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>foo<!>.<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>context<!> as String
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// ISSUE: KT-58757
internal abstract class Foo {