[Tests] Add regression test for KT-63564

#KT-63564 Fixed
This commit is contained in:
Kirill Rakhman
2023-11-22 16:20:22 +01:00
committed by Space Team
parent 674c56827f
commit 934253878b
20 changed files with 127 additions and 0 deletions
@@ -50352,6 +50352,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -50352,6 +50352,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -49813,6 +49813,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -49813,6 +49813,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -49813,6 +49813,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
+14
View File
@@ -0,0 +1,14 @@
import kotlin.reflect.KProperty
fun foo(vararg x: KProperty<*>) {}
var prop: String = ""
fun test() {
foo(::prop)
}
fun box(): String {
test()
return "OK"
}
@@ -46831,6 +46831,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -49813,6 +49813,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -49813,6 +49813,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Test
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
@@ -40003,6 +40003,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@TestMetadata("noConversionFromSamToSam.kt")
public void testNoConversionFromSamToSam() throws Exception {
runTest("compiler/testData/codegen/box/sam/noConversionFromSamToSam.kt");
@@ -34711,6 +34711,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -34711,6 +34711,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -34711,6 +34711,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -34711,6 +34711,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -38418,6 +38418,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -39394,6 +39394,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -37442,6 +37442,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -38419,6 +38419,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -34585,6 +34585,12 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@@ -34585,6 +34585,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
runTest("compiler/testData/codegen/box/sam/kt59858.kt");
}
@Test
@TestMetadata("kt63564.kt")
public void testKt63564() throws Exception {
runTest("compiler/testData/codegen/box/sam/kt63564.kt");
}
@Nested
@TestMetadata("compiler/testData/codegen/box/sam/adapters")
@TestDataPath("$PROJECT_ROOT")