[FIR] Fix captured type arguments of local class as callable reference LHS

#KT-66267
This commit is contained in:
Kirill Rakhman
2024-03-05 16:14:27 +01:00
committed by Space Team
parent 66212c0ec6
commit 4c93e9cff6
24 changed files with 163 additions and 10 deletions
@@ -23,6 +23,7 @@ object FirTypeArgumentsOfQualifierOfCallableReferenceChecker : FirCallableRefere
val lhs = expression.explicitReceiver as? FirResolvedQualifier ?: return
val correspondingDeclaration = lhs.symbol ?: return
// TODO(KT-66344) Support inner classes
var typeArgumentsWithSourceInfo = lhs.typeArguments.toTypeArgumentsWithSourceInfo()
var typeParameterSymbols = correspondingDeclaration.typeParameterSymbols.filter { it.containingDeclarationSymbol is FirClassLikeSymbol }
if (typeParameterSymbols.size != typeArgumentsWithSourceInfo.size) {