[FIR2IR] Convert data class properties of type dynamic for hashCode
Properties of type dynamic within a data class cause compilation to fail when converting FIR to IR. This is because dynamic types do not have a proper backing class for symbol lookup. However, dynamic types can just be considered of type Any for hashCode calculations. ^KT-63094 Fixed
This commit is contained in:
Generated
+6
@@ -2617,6 +2617,12 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInDataClass.kt")
|
||||
public void testDynamicInDataClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() throws Exception {
|
||||
|
||||
+6
@@ -2617,6 +2617,12 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInDataClass.kt")
|
||||
public void testDynamicInDataClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() throws Exception {
|
||||
|
||||
+6
@@ -2617,6 +2617,12 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInDataClass.kt")
|
||||
public void testDynamicInDataClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user