[FIR2IR] Fix interpreting constants from const properties from other module

This commit is contained in:
Dmitriy Novozhilov
2021-03-01 15:28:24 +03:00
committed by TeamCityServer
parent a7e6667648
commit 245bc7c8e2
10 changed files with 73 additions and 2 deletions
@@ -4738,6 +4738,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt");
}
@TestMetadata("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt");
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt");
@@ -4195,6 +4195,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt");
}
@TestMetadata("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt");
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt");
@@ -4195,6 +4195,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/constants/comparisonTrue.kt");
}
@TestMetadata("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt");
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt");
@@ -3021,6 +3021,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/constants/comparisonFalse.kt");
}
@TestMetadata("constValFromAnotherModuleInConsVal.kt")
public void testConstValFromAnotherModuleInConsVal() throws Exception {
runTest("compiler/testData/codegen/box/constants/constValFromAnotherModuleInConsVal.kt");
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("compiler/testData/codegen/box/constants/constantsInWhen.kt");