Minor. Add regression test for KT-62127
#KT-62127 Fixed
This commit is contained in:
committed by
Space Team
parent
203b7a4da3
commit
197f0112b4
+6
@@ -22153,6 +22153,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
+6
@@ -22153,6 +22153,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
+6
@@ -22153,6 +22153,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
// WITH_STDLIB
|
||||
// The test depends on kotlin.jvm package
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: b.kt
|
||||
|
||||
package b
|
||||
|
||||
import a.*
|
||||
|
||||
public object MstLogicAlgebra1 : LogicAlgebra1<StringSymbol1> {
|
||||
override fun const(boolean: Boolean): StringSymbol1 = if (boolean) {
|
||||
LogicAlgebra1.TRUE
|
||||
} else {
|
||||
LogicAlgebra1.FALSE
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
package a
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
|
||||
public interface LogicAlgebra1<T : Any> {
|
||||
|
||||
public fun const(boolean: Boolean): T
|
||||
|
||||
public companion object {
|
||||
public val TRUE: StringSymbol1 by symbol1
|
||||
public val FALSE: StringSymbol1 by symbol1
|
||||
}
|
||||
}
|
||||
|
||||
public val symbol1: ReadOnlyProperty<Any?, StringSymbol1> = ReadOnlyProperty { _, property ->
|
||||
StringSymbol1(property.name)
|
||||
}
|
||||
|
||||
@JvmInline
|
||||
public value class StringSymbol1(public val identity: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: c.kt
|
||||
|
||||
import b.*
|
||||
|
||||
fun box(): String {
|
||||
MstLogicAlgebra1.run { const(true) }
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -21097,6 +21097,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
+6
@@ -22153,6 +22153,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
+6
@@ -22153,6 +22153,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
|
||||
+5
@@ -18508,6 +18508,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/defaultWithInlineClassArgumentGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@TestMetadata("delegateFromDifferentPackage.kt")
|
||||
public void testDelegateFromDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/delegateFromDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("elvisWithInlineClassAndNullConstant.kt")
|
||||
public void testElvisWithInlineClassAndNullConstant() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/elvisWithInlineClassAndNullConstant.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
|
||||
Reference in New Issue
Block a user