[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
This commit is contained in:
Brian Norman
2023-05-30 12:49:52 -05:00
committed by Space Team
parent 5fe5113344
commit 8fad4272fc
5 changed files with 16 additions and 1 deletions
@@ -2161,7 +2161,7 @@ object FirErrorsDefaultMessages : BaseDiagnosticRendererFactory() {
)
map.put(
PRIVATE_CLASS_MEMBER_FROM_INLINE,
"Non-private inline function cannot access members of private classes: ''{1}''",
"Non-private inline function ''{1}'' cannot access members of private classes: ''{0}''",
SYMBOL,
SYMBOL
)