JVM IR: do not generate invokeinterface hashCode if smart cast is present
#KT-45008 Fixed
This commit is contained in:
+6
@@ -3009,6 +3009,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
public void testInterfaceHashCode() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("interfaceHashCodeWithSmartCast.kt")
|
||||
public void testInterfaceHashCodeWithSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCodeWithSmartCast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -3141,6 +3141,12 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
public void testInterfaceHashCode() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("interfaceHashCodeWithSmartCast.kt")
|
||||
public void testInterfaceHashCodeWithSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCodeWithSmartCast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user