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:
committed by
Space Team
parent
95ec7ede66
commit
c898b264ba
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user