Minor. Add test

This commit is contained in:
Ilmir Usmanov
2020-08-11 14:28:57 +02:00
parent 00bf07fc41
commit 8a098545e6
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,9 @@
@Suppress("RESULT_CLASS_IN_RETURN_TYPE")
suspend fun signInFlowStepFirst(): Result<Unit> = Result.success(Unit)
inline class OurAny(val a: Any)
suspend fun returnsUnboxed(): OurAny = OurAny("OK")
// 1 INVOKESTATIC kotlin/Result.box-impl
// 0 INVOKESTATIC kotlin/OurAny.box-impl
@@ -1421,6 +1421,11 @@ 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");
@@ -1431,6 +1431,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
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_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines");