[Reflection] Use reference equality to determine that a callable reference is bound

It helps to avoid problems when receiver object implements structural equals violating the equality contract

#KT-60709
This commit is contained in:
Evgeniy.Zhelenskiy
2023-07-26 09:35:07 +02:00
committed by Space Team
parent 64f90f685d
commit 291d52820c
10 changed files with 58 additions and 2 deletions
@@ -35884,6 +35884,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/reflection/callBy/jvmStaticInObject.kt");
}
@TestMetadata("kt60709.kt")
public void testKt60709() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/kt60709.kt");
}
@TestMetadata("kt61304.kt")
public void testKt61304() throws Exception {
runTest("compiler/testData/codegen/box/reflection/callBy/kt61304.kt");