[Tests] Add test for KT-44199
^KT-44199 Fixed
This commit is contained in:
committed by
Space Team
parent
1ad0872958
commit
a9af52c288
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+6
@@ -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() {
|
||||
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user