[FIR2IR] Consider property init value from nested class, ^KT-52057 Fixed

This commit is contained in:
Ivan Kochurkin
2022-04-20 00:07:17 +03:00
parent 48c4d4cf21
commit 0ef043b074
11 changed files with 76 additions and 2 deletions
@@ -19901,6 +19901,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("considerPropertyInitValueFromNestedClass.kt")
public void testConsiderPropertyInitValueFromNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt");
}
@Test
@TestMetadata("createNestedClass.kt")
public void testCreateNestedClass() throws Exception {
@@ -19865,6 +19865,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("considerPropertyInitValueFromNestedClass.kt")
public void testConsiderPropertyInitValueFromNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt");
}
@Test
@TestMetadata("createNestedClass.kt")
public void testCreateNestedClass() throws Exception {
@@ -17591,6 +17591,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/innerNested"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("considerPropertyInitValueFromNestedClass.kt")
public void testConsiderPropertyInitValueFromNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/considerPropertyInitValueFromNestedClass.kt");
}
@TestMetadata("createNestedClass.kt")
public void testCreateNestedClass() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/createNestedClass.kt");