8fad4272fc
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
21 lines
465 B
Kotlin
Vendored
21 lines
465 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_WARNING!>buildFoo<!>()
|
|
Foo.Companion.Nested.bar()
|
|
}
|