Minor, add regression test for KT-58772
#KT-58772
This commit is contained in:
committed by
Space Team
parent
ccf4a6813c
commit
b992e698e4
+6
@@ -46050,6 +46050,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
|
|||||||
+6
@@ -46050,6 +46050,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
// TARGET_BACKEND: JVM
|
||||||
|
// WITH_REFLECT
|
||||||
|
|
||||||
|
import kotlin.reflect.*
|
||||||
|
import kotlin.reflect.full.*
|
||||||
|
|
||||||
|
interface Base {
|
||||||
|
val message: String
|
||||||
|
}
|
||||||
|
|
||||||
|
class C(val base: Base) : Base by base
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val prop = C::class.memberProperties.single { it.name == "message" } as KProperty1<C, String>
|
||||||
|
|
||||||
|
val c = C(object : Base {
|
||||||
|
override val message: String = "OK"
|
||||||
|
})
|
||||||
|
|
||||||
|
return prop.get(c)
|
||||||
|
}
|
||||||
+6
@@ -43452,6 +43452,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
|
|||||||
+6
@@ -46050,6 +46050,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
|
|||||||
+6
@@ -46050,6 +46050,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
|
|||||||
+5
@@ -35006,6 +35006,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/getPropertiesMutableVsReadonly.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("interfaceDelegation.kt")
|
||||||
|
public void testInterfaceDelegation() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/properties/interfaceDelegation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("invokeKProperty.kt")
|
@TestMetadata("invokeKProperty.kt")
|
||||||
public void testInvokeKProperty() throws Exception {
|
public void testInvokeKProperty() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/reflection/properties/invokeKProperty.kt");
|
runTest("compiler/testData/codegen/box/reflection/properties/invokeKProperty.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user