[Tests] Add test for KT-44199

^KT-44199 Fixed
This commit is contained in:
Vladimir Sukharev
2024-03-06 11:05:12 +01:00
committed by Space Team
parent 1ad0872958
commit a9af52c288
22 changed files with 143 additions and 0 deletions
@@ -18177,6 +18177,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -18177,6 +18177,12 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -18177,6 +18177,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
+18
View File
@@ -0,0 +1,18 @@
import kotlin.reflect.KProperty
class WrapperDelegate<T>(val value: T) {
inline operator fun getValue(thisRef: Any?, property: KProperty<*>) = value
}
class NameWrapperDelegate<T>(val build: (String) -> T) {
inline operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = WrapperDelegate(build(property.name))
}
object Annotations {
val O by NameWrapperDelegate { it + "K" }
val Second by NameWrapperDelegate { it + "-prop2" }
}
fun box(): String {
return Annotations.O.toString()
}
@@ -18177,6 +18177,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -17775,6 +17775,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt8154.kt")
public void testKt8154() {
@@ -18177,6 +18177,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -18177,6 +18177,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -18177,6 +18177,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@Test
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@Test
@TestMetadata("kt54654.kt")
public void testKt54654() {
@@ -15046,6 +15046,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
}
@TestMetadata("kt44199.kt")
public void testKt44199() {
runTest("compiler/testData/codegen/box/delegation/kt44199.kt");
}
@TestMetadata("kt54654.kt")
public void testKt54654() {
runTest("compiler/testData/codegen/box/delegation/kt54654.kt");