Add tests for case when result of tail-call suspend function returning

Unit is not Unit.
 #KT-34703 Fixed
This commit is contained in:
Ilmir Usmanov
2019-11-01 02:30:29 +03:00
parent ca527444cb
commit 8c079706a5
5 changed files with 104 additions and 5 deletions
@@ -8469,6 +8469,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/tryCatch.kt", "kotlin.coroutines");
}
@TestMetadata("unitFunReturnsNonUnit.kt")
public void testUnitFunReturnsNonUnit() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unitFunReturnsNonUnit.kt");
}
@TestMetadata("unitFunReturnsNonUnitCallSuspend.kt")
public void testUnitFunReturnsNonUnitCallSuspend() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unitFunReturnsNonUnitCallSuspend.kt");
}
@TestMetadata("unreachable.kt")
public void testUnreachable() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallOptimizations/unreachable.kt");