Support not boxing inline class of reference class

even if the class is other than Any.
 #KT-41429 In progress
This commit is contained in:
Ilmir Usmanov
2020-08-20 21:44:35 +02:00
parent 5c011bc954
commit 023cdd7cd4
9 changed files with 196 additions and 67 deletions
@@ -1426,11 +1426,6 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/coroutines/nonLocalReturn.kt");
}
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/returnResult.kt");
}
@TestMetadata("returnUnitInLambda.kt")
public void testReturnUnitInLambda_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines.experimental");
@@ -1586,6 +1581,21 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
public void testNoInlineClassBoxingInSuspendFunReturn_InlineAny() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_InlineAny.kt");
}
@TestMetadata("noInlineClassBoxingInSuspendFunReturn_String.kt")
public void testNoInlineClassBoxingInSuspendFunReturn_String() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_String.kt");
}
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnResult.kt");
}
@TestMetadata("returnStringOverride.kt")
public void testReturnStringOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnStringOverride.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling")