Fix ArrayStoreException from InlineClassAwareCaller.call
#KT-56650 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
10e9ef349f
commit
b039f2e574
+6
@@ -43019,6 +43019,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
||||
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+6
@@ -43019,6 +43019,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
||||
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// WITH_REFLECT
|
||||
|
||||
@JvmInline
|
||||
value class Value(val value: String)
|
||||
|
||||
class A(val result: Value)
|
||||
|
||||
fun box(): String {
|
||||
val args: Array<Value> = arrayOf(Value("OK"))
|
||||
|
||||
val a = (::A).call(*args)
|
||||
return a.result.value
|
||||
}
|
||||
+6
@@ -40901,6 +40901,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
||||
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+6
@@ -43019,6 +43019,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
||||
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+5
@@ -32674,6 +32674,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/primaryValOfInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleConstructorWithInlineClassParameter.kt")
|
||||
public void testSimpleConstructorWithInlineClassParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/call/inlineClasses/simpleConstructorWithInlineClassParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/reflection/call/inlineClasses/nonNullObject")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user