Do not generate state-machines for suspend lambdas, which capture any

crossinline lambda, not only suspend.
 #KT-29912 Fixed
This commit is contained in:
Ilmir Usmanov
2019-02-18 19:57:15 +03:00
parent 931e1aa213
commit 6e120b2173
13 changed files with 262 additions and 35 deletions
@@ -8042,6 +8042,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/crossinline.kt", "kotlin.coroutines");
}
@TestMetadata("epam.kt")
public void testEpam_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/epam.kt", "kotlin.coroutines.experimental");
}
@TestMetadata("epam.kt")
public void testEpam_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/epam.kt", "kotlin.coroutines");
}
@TestMetadata("inlineWithStateMachine.kt")
public void testInlineWithStateMachine_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithStateMachine.kt", "kotlin.coroutines.experimental");