FIR2IR: fix receiver of value classes method references

This commit fixes the receiver of these method in FIR2IR code
by removing a particular hack.
However, as the consequence of it 2 black box tests become broken in K2.
The reason is KT-54952 which is not yet fixed

Related to KT-54887
This commit is contained in:
Mikhail Glukhikh
2023-05-11 11:30:25 +02:00
committed by Space Team
parent 95ec7ede66
commit c898b264ba
5 changed files with 5 additions and 6 deletions
@@ -243,10 +243,7 @@ private fun FirCallableSymbol<*>.toSymbolForCall(
}
// Unbound callable reference to member (non-extension)
isReference && fir.receiverParameter == null -> {
// TODO: remove runIf with StandardClassIds.Any comparison after fixing ValueClass::equals case (KT-54887)
runIf(containingClassLookupTag()?.classId != StandardClassIds.Any) {
(explicitReceiver as? FirResolvedQualifier)?.toLookupTag(session)
}
(explicitReceiver as? FirResolvedQualifier)?.toLookupTag(session)
}
else -> null
}