Add regression test for KT-51254

#KT-51254 Fixed
This commit is contained in:
Ilmir Usmanov
2022-02-11 07:13:33 +01:00
parent 00a08fc6a4
commit 714c5091cc
9 changed files with 65 additions and 0 deletions
@@ -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 {
+19
View File
@@ -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"
}
@@ -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 {
@@ -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 {
@@ -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());
@@ -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 {
@@ -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 {
@@ -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());
@@ -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 {