[Tests] Add regression test for #KT-63732
This commit is contained in:
committed by
Space Team
parent
9ea4afe7c8
commit
11ab90ecbd
+6
@@ -27958,6 +27958,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27958,6 +27958,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27611,6 +27611,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27611,6 +27611,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27611,6 +27611,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,23 @@
|
|||||||
|
// IGNORE_BACKEND_K1: ANY
|
||||||
|
// ^KT-63732
|
||||||
|
|
||||||
|
lateinit var foo: Any
|
||||||
|
|
||||||
|
class A<T : Any> {
|
||||||
|
inner class B(x: T) {
|
||||||
|
init {
|
||||||
|
foo = x
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun foo(t: T) {
|
||||||
|
object {
|
||||||
|
val something: B = B(t)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
A<String>().foo("OK")
|
||||||
|
return foo as String
|
||||||
|
}
|
||||||
+6
@@ -26345,6 +26345,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27611,6 +27611,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -27611,6 +27611,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+5
@@ -23277,6 +23277,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/innerNested/kt6804.kt");
|
runTest("compiler/testData/codegen/box/innerNested/kt6804.kt");
|
||||||
|
|||||||
+6
@@ -21185,6 +21185,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
Generated
+6
@@ -21185,6 +21185,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -21185,6 +21185,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -21185,6 +21185,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -24244,6 +24244,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -24700,6 +24700,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -23788,6 +23788,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
+6
@@ -24245,6 +24245,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
Generated
+6
@@ -21209,6 +21209,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
Generated
+6
@@ -21209,6 +21209,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
|||||||
runTest("compiler/testData/codegen/box/innerNested/kt5363.kt");
|
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
|
@Test
|
||||||
@TestMetadata("kt6804.kt")
|
@TestMetadata("kt6804.kt")
|
||||||
public void testKt6804() throws Exception {
|
public void testKt6804() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user