Cleanup: rename getSingleExpectForActualOrNull w.r.t. KT-62590

New name makes slightly more sense after KT-6259 is fixed
This commit is contained in:
Nikita Bobko
2023-11-07 16:34:31 +01:00
committed by teamcity
parent e80f044847
commit 2b82726f1d
8 changed files with 22 additions and 16 deletions
@@ -28,7 +28,7 @@ object FirOverloadsChecker : FirFunctionChecker() {
val annotation = declaration.getAnnotationByClassId(JVM_OVERLOADS_CLASS_ID, session) ?: return
val ownerOfParametersWithDefaultValues = declaration.symbol.takeIf { !it.isActual }
?: declaration.symbol.getSingleExpectForActualOrNull()
?: declaration.symbol.getSingleMatchedExpectForActualOrNull()
?: return
val containingDeclaration = declaration.getContainingClassSymbol(session)