[FIR] Fix order of arguments passed to inline function diagnostics
Accessibility-related diagnostics for inline function have the inline function symbol as a first argument, and the forbidden callee as a second one. ^KT-59673: Fixed
This commit is contained in:
committed by
Space Team
parent
c8190707b3
commit
c6bd981fad
+2
-2
@@ -150,8 +150,8 @@ object FirInlineDeclarationChecker : FirFunctionChecker() {
|
||||
reporter.reportOn(
|
||||
source,
|
||||
FirErrors.NON_PUBLIC_CALL_FROM_PUBLIC_INLINE,
|
||||
accessedSymbol,
|
||||
inlineFunction.symbol,
|
||||
accessedSymbol,
|
||||
context
|
||||
)
|
||||
} else {
|
||||
@@ -295,7 +295,7 @@ object FirInlineDeclarationChecker : FirFunctionChecker() {
|
||||
prohibitProtectedCallFromInline -> FirErrors.PROTECTED_CALL_FROM_PUBLIC_INLINE_ERROR
|
||||
else -> FirErrors.PROTECTED_CALL_FROM_PUBLIC_INLINE
|
||||
}
|
||||
reporter.reportOn(source, factory, calledDeclaration, inlineFunction.symbol, context)
|
||||
reporter.reportOn(source, factory, inlineFunction.symbol, calledDeclaration, context)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user