[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
@@ -18236,6 +18236,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
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() {
@@ -18236,6 +18236,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
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 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");
@@ -14085,6 +14085,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
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() {
@@ -14085,6 +14085,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
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() {
@@ -14085,6 +14085,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
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() {
@@ -14085,6 +14085,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
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() {
@@ -15167,6 +15167,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
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() {
@@ -15499,6 +15499,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
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() {
@@ -14835,6 +14835,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
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() {
@@ -15168,6 +15168,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
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() {
@@ -14061,6 +14061,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
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() {
@@ -14061,6 +14061,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
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() {