Fix condition of generating equals-impl0 call

This methods should not be called when instances of different inline
classes are being compared

^KT-57242: Fixed
This commit is contained in:
vladislav.grechko
2023-03-10 18:11:42 +01:00
committed by teamcity
parent 948714e7e5
commit 8039e30bbd
5 changed files with 46 additions and 4 deletions
@@ -22613,6 +22613,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt");
}
@Test
@TestMetadata("kt57242.kt")
public void testKt57242() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt57242.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@Test
@TestMetadata("lateinitInlineClasses.kt")
public void testLateinitInlineClasses() throws Exception {
@@ -22613,6 +22613,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/inlineClasses/kt54656.kt");
}
@Test
@TestMetadata("kt57242.kt")
public void testKt57242() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt57242.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@Test
@TestMetadata("lateinitInlineClasses.kt")
public void testLateinitInlineClasses() throws Exception {