FIR2IR: Fix exception when local class used before declaration
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -17261,6 +17261,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassUsedBeforeDeclaration.kt")
|
||||
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDataClass.kt")
|
||||
public void testLocalDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localDataClass.kt");
|
||||
|
||||
Generated
+5
@@ -16667,6 +16667,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassUsedBeforeDeclaration.kt")
|
||||
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDataClass.kt")
|
||||
public void testLocalDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localDataClass.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -15963,6 +15963,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClassUsedBeforeDeclaration.kt")
|
||||
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localDataClass.kt")
|
||||
public void testLocalDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localDataClass.kt");
|
||||
|
||||
+6
@@ -18704,6 +18704,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassInParameterInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClassUsedBeforeDeclaration.kt")
|
||||
public void testLocalClassUsedBeforeDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClassUsedBeforeDeclaration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localDataClass.kt")
|
||||
public void testLocalDataClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user