Fix boxing/unboxing for generic functions on index expressions
Unsubstituted type should be used for coercion to box value of inline class type if it's needed. For the substituted value it's not known if it was a generic parameter or not. #KT-27502 Fixed
This commit is contained in:
+5
-5
@@ -5160,11 +5160,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("createCoroutinesOnManualInstances.kt")
|
||||
public void testCreateCoroutinesOnManualInstances() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("createCoroutinesOnManualInstances_1_2.kt")
|
||||
public void testCreateCoroutinesOnManualInstances_1_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt");
|
||||
@@ -10524,6 +10519,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt")
|
||||
public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useInlineClassesInsideElvisOperator.kt")
|
||||
public void testUseInlineClassesInsideElvisOperator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt");
|
||||
|
||||
+5
-5
@@ -5245,11 +5245,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/createCoroutineSafe.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("createCoroutinesOnManualInstances.kt")
|
||||
public void testCreateCoroutinesOnManualInstances() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("createCoroutinesOnManualInstances_1_2.kt")
|
||||
public void testCreateCoroutinesOnManualInstances_1_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/createCoroutinesOnManualInstances_1_2.kt");
|
||||
@@ -11569,6 +11564,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueFromPlatformType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unboxValueOfAnyBeforeMethodInvocation.kt")
|
||||
public void testUnboxValueOfAnyBeforeMethodInvocation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/unboxValueOfAnyBeforeMethodInvocation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useInlineClassesInsideElvisOperator.kt")
|
||||
public void testUseInlineClassesInsideElvisOperator() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/useInlineClassesInsideElvisOperator.kt");
|
||||
|
||||
Reference in New Issue
Block a user