Obtain correct captured suspend local function

if we call the function inside, for example, lambda.
 #KT-28844 Fixed
This commit is contained in:
Ilmir Usmanov
2018-12-18 14:57:32 +03:00
parent ac5f5bd453
commit 10f0a2f660
7 changed files with 93 additions and 5 deletions
@@ -5906,6 +5906,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt25912.kt", "kotlin.coroutines");
}
@TestMetadata("kt28844.kt")
public void testKt28844_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt28844.kt", "kotlin.coroutines.experimental");
}
@TestMetadata("kt28844.kt")
public void testKt28844_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/kt28844.kt", "kotlin.coroutines");
}
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt", "kotlin.coroutines.experimental");