Proper equality comparison for bound callable references represented as reflection objects

(including references to property accessors).
This commit is contained in:
Dmitry Petrov
2016-11-23 16:24:30 +03:00
parent 3dd0c9d1c7
commit 5879e201cd
14 changed files with 148 additions and 21 deletions
@@ -1575,11 +1575,23 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/propertyAccessors.kt");
doTest(fileName);
}
@TestMetadata("receiverInEquals.kt")
public void testReceiverInEquals() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
doTest(fileName);
}
@TestMetadata("reflectionReference.kt")
public void testReflectionReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/callableReference/bound/inline")