[FIR] Report INNER_CLASS_CONSTRUCTOR_NO_RECEIVER on delegated constructor calls

#KT-59677 Fixed
This commit is contained in:
Kirill Rakhman
2024-03-18 17:45:41 +01:00
committed by Space Team
parent a13756cfe9
commit 72235b8527
10 changed files with 35 additions and 17 deletions
@@ -400,6 +400,11 @@ private fun mapInapplicableCandidateError(
is AmbiguousInterceptedSymbol -> FirErrors.PLUGIN_AMBIGUOUS_INTERCEPTED_SYMBOL.createOn(source, rootCause.pluginNames)
is MissingInnerClassConstructorReceiver -> FirErrors.INNER_CLASS_CONSTRUCTOR_NO_RECEIVER.createOn(
source,
rootCause.candidateSymbol
)
else -> genericDiagnostic
}
}.distinct()