JVM IR: fix generation of equals/hashCode for fun interfaces over references
... in case `-Xno-optimized-callable-references` is enabled. Before this change, the generated abstract equals/hashCode methods were considered as accidental overrides because they did not have equals/hashCode from the supertype in the overriddenSymbols list. #KT-43666 Fixed
This commit is contained in:
+5
@@ -13594,6 +13594,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noOptimizedCallableReferences.kt")
|
||||
public void testNoOptimizedCallableReferences() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/noOptimizedCallableReferences.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonAbstractMethod.kt")
|
||||
public void testNonAbstractMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt");
|
||||
|
||||
Reference in New Issue
Block a user