[K/JS, K/Wasm, K/Native] Process anonymous initializers inside classes as a part of their primary constructors ^KT-61929 Fixed

This commit is contained in:
Artem Kobzar
2023-11-17 13:04:34 +00:00
committed by Space Team
parent 3413b07550
commit e64068cf82
21 changed files with 149 additions and 2 deletions
@@ -5056,6 +5056,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/classes/namedClassObject.kt");
}
@Test
@TestMetadata("nestedInitBlocksWithLambda.kt")
public void testNestedInitBlocksWithLambda() throws Exception {
runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.kt");
}
@Test
@TestMetadata("outerThis.kt")
public void testOuterThis() throws Exception {
@@ -5170,6 +5170,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/classes/namedClassObject.kt");
}
@Test
@TestMetadata("nestedInitBlocksWithLambda.kt")
public void testNestedInitBlocksWithLambda() throws Exception {
runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.kt");
}
@Test
@TestMetadata("outerThis.kt")
public void testOuterThis() throws Exception {
@@ -4942,6 +4942,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/classes/namedClassObject.kt");
}
@Test
@TestMetadata("nestedInitBlocksWithLambda.kt")
public void testNestedInitBlocksWithLambda() throws Exception {
runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.kt");
}
@Test
@TestMetadata("outerThis.kt")
public void testOuterThis() throws Exception {
@@ -5057,6 +5057,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/classes/namedClassObject.kt");
}
@Test
@TestMetadata("nestedInitBlocksWithLambda.kt")
public void testNestedInitBlocksWithLambda() throws Exception {
runTest("compiler/testData/codegen/box/classes/nestedInitBlocksWithLambda.kt");
}
@Test
@TestMetadata("outerThis.kt")
public void testOuterThis() throws Exception {