Generate call of throwOnFailure instead of manual check

whether coroutine is resumed with exception.
 #KT-28015 Fixed
This commit is contained in:
Ilmir Usmanov
2019-02-14 14:41:06 +03:00
parent 7c83d5df93
commit 19d2262cf1
4 changed files with 31 additions and 12 deletions
@@ -1125,6 +1125,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTestWithPackageReplacement("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt", "kotlin.coroutines");
}
@TestMetadata("throwOnFailure.kt")
public void testThrowOnFailure() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/throwOnFailure.kt");
}
@TestMetadata("varValueConflictsWithTable.kt")
public void testVarValueConflictsWithTable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable.kt");