[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:
Brian Norman
2023-11-08 14:49:51 -06:00
committed by Space Team
parent 4b3dfe6e6e
commit ed4a778aa7
12 changed files with 560 additions and 5 deletions
@@ -2283,6 +2283,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
}
@TestMetadata("dynamicInDataClass.kt")
public void testDynamicInDataClass() throws Exception {
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
}
@TestMetadata("dynamicInfixCall.kt")
public void testDynamicInfixCall() throws Exception {
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt");