Leave boxing for compareTo/areEqual methods for inline classes
Inline classes can override methods and thus introduce side effects
This commit is contained in:
+5
@@ -11196,6 +11196,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/computablePropertyInsideInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conformToComparableAndCallInterfaceMethod.kt")
|
||||
public void testConformToComparableAndCallInterfaceMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/conformToComparableAndCallInterfaceMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("correctBoxingForBranchExpressions.kt")
|
||||
public void testCorrectBoxingForBranchExpressions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/correctBoxingForBranchExpressions.kt");
|
||||
|
||||
Reference in New Issue
Block a user