Provide equals/hashCode/toString for KParameter implementation

Two KParameter instances are equal iff their backing descriptors are equal and
their callables are equal
This commit is contained in:
Alexander Udalov
2015-08-24 17:33:36 +03:00
parent d4825cf4f0
commit d36ef90dd6
5 changed files with 97 additions and 0 deletions
@@ -3492,6 +3492,18 @@ public class BlackBoxWithStdlibCodegenTestGenerated extends AbstractBlackBoxCode
doTestWithStdlib(fileName);
}
@TestMetadata("parametersEqualsHashCode.kt")
public void testParametersEqualsHashCode() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/methodsFromAny/parametersEqualsHashCode.kt");
doTestWithStdlib(fileName);
}
@TestMetadata("parametersToString.kt")
public void testParametersToString() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/methodsFromAny/parametersToString.kt");
doTestWithStdlib(fileName);
}
@TestMetadata("propertyEqualsHashCode.kt")
public void testPropertyEqualsHashCode() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxWithStdlib/reflection/methodsFromAny/propertyEqualsHashCode.kt");