Minor. Add test
This commit is contained in:
@@ -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");
|
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")
|
@TestMetadata("returnUnitInLambda.kt")
|
||||||
public void testReturnUnitInLambda_1_2() throws Exception {
|
public void testReturnUnitInLambda_1_2() throws Exception {
|
||||||
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines.experimental");
|
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines.experimental");
|
||||||
|
|||||||
+5
@@ -1431,6 +1431,11 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
|||||||
runTest("compiler/testData/codegen/bytecodeText/coroutines/nonLocalReturn.kt");
|
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")
|
@TestMetadata("returnUnitInLambda.kt")
|
||||||
public void testReturnUnitInLambda_1_3() throws Exception {
|
public void testReturnUnitInLambda_1_3() throws Exception {
|
||||||
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines");
|
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines");
|
||||||
|
|||||||
Reference in New Issue
Block a user