Add regression test for KT-51254
#KT-51254 Fixed
This commit is contained in:
+6
@@ -21145,6 +21145,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JVM, WASM, JS, JS_IR
|
||||
|
||||
@JvmInline
|
||||
value class Inlined(val value: Int)
|
||||
|
||||
sealed interface A <T: Inlined> {
|
||||
fun foo(i: T?)
|
||||
}
|
||||
|
||||
class B : A<Nothing> {
|
||||
override fun foo(i: Nothing?) {}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a: A<*> = B()
|
||||
a.foo(null)
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -20719,6 +20719,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
+6
@@ -21145,6 +21145,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
+5
@@ -16038,6 +16038,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
}
|
||||
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void ignoreKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mappingOfBoxedFlexibleInlineClassTypeGeneric.kt")
|
||||
public void ignoreMappingOfBoxedFlexibleInlineClassTypeGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/mappingOfBoxedFlexibleInlineClassTypeGeneric.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
|
||||
|
||||
+6
@@ -16323,6 +16323,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
+6
@@ -16287,6 +16287,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
+5
@@ -13717,6 +13717,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getRemoveOptionalJvmInlineAnnotation());
|
||||
|
||||
+6
@@ -17902,6 +17902,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51254.kt")
|
||||
public void testKt51254() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt51254.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mangledDefaultParameterFunction.kt")
|
||||
public void testMangledDefaultParameterFunction() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user