diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java index c385b12ac10..c0227fbdede 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java @@ -27958,6 +27958,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java index 5d3b28120ce..27ac679aede 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java @@ -27958,6 +27958,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 58ea93b4a3d..d938ce01ee8 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -27611,6 +27611,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index 16d50cc4a7d..10cb0bc1abe 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -27611,6 +27611,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 52967cc7a16..664644166b1 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -27611,6 +27611,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/testData/codegen/box/innerNested/kt63732.kt b/compiler/testData/codegen/box/innerNested/kt63732.kt new file mode 100644 index 00000000000..5264df64b96 --- /dev/null +++ b/compiler/testData/codegen/box/innerNested/kt63732.kt @@ -0,0 +1,23 @@ +// IGNORE_BACKEND_K1: ANY +// ^KT-63732 + +lateinit var foo: Any + +class A { + inner class B(x: T) { + init { + foo = x + } + } + + fun foo(t: T) { + object { + val something: B = B(t) + } + } +} + +fun box(): String { + A().foo("OK") + return foo as String +} \ No newline at end of file diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java index cf5e414f018..273cb978ca5 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxCodegenTestGenerated.java @@ -26345,6 +26345,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest { runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index a7947400df6..ba935def780 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -27611,6 +27611,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index 064f170806f..4b3d58c1ecc 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -27611,6 +27611,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index b666f638129..66740ff6286 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -23277,6 +23277,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { runTest("compiler/testData/codegen/box/innerNested/kt6804.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index 357e44728f7..ea5306faedf 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -21185,6 +21185,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index 60724d06910..e5bf5f4ac8b 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -21185,6 +21185,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 6770c9809a9..31ba5b32024 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -21185,6 +21185,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index a6fe2e5c34f..d77ae0f6d70 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -21185,6 +21185,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java index 7e99441c6a1..7dcc568c1bc 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java @@ -24244,6 +24244,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java index e41898795c2..af457903d80 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java @@ -24700,6 +24700,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java index 2fddbcfe8e8..3adb70c3118 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java @@ -23788,6 +23788,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java index b615537d341..4fee40c9802 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java @@ -24245,6 +24245,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java index b74c43347c4..d6ffe9b8cfe 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmCodegenBoxTestGenerated.java @@ -21209,6 +21209,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java index 0c33b166bbb..4402cf708eb 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java @@ -21209,6 +21209,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/innerNested/kt5363.kt"); } + @Test + @TestMetadata("kt63732.kt") + public void testKt63732() throws Exception { + runTest("compiler/testData/codegen/box/innerNested/kt63732.kt"); + } + @Test @TestMetadata("kt6804.kt") public void testKt6804() throws Exception {