[Tests] Add regression test for #KT-63732

This commit is contained in:
Kirill Rakhman
2023-11-23 11:18:21 +01:00
committed by Space Team
parent 9ea4afe7c8
commit 11ab90ecbd
20 changed files with 136 additions and 0 deletions
@@ -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 {
@@ -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 {
@@ -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 {
+23
View File
@@ -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
}
@@ -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 {
@@ -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 {
@@ -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 {
@@ -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");