Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/nonPublicMember/kt55179.fir.kt
T
Brian Norman 8fad4272fc [FIR] Fix default message for PRIVATE_CLASS_MEMBER_FROM_INLINE
Error message was only printing the calling inline function and not the
class member being accessed. Make sure both pieces for diagnostic
information are included in the error message.

#KT-58972 Fixed
2023-06-15 13:49:41 +00:00

21 lines
457 B
Kotlin
Vendored

// ISSUE: KT-55179
// SKIP_TXT
// !RENDER_DIAGNOSTICS_FULL_TEXT
private class Foo {
companion object {
fun buildFoo() = Foo()
object Nested {
fun bar() {}
}
}
}
internal <!NOTHING_TO_INLINE!>inline<!> fun foo() {
<!PRIVATE_CLASS_MEMBER_FROM_INLINE!>Foo<!>()
Foo.<!PRIVATE_CLASS_MEMBER_FROM_INLINE!>Companion<!>
Foo.<!PRIVATE_CLASS_MEMBER_FROM_INLINE!>buildFoo<!>()
Foo.Companion.Nested.bar()
}