Fix signature of accessor for suspend function

It must be a suspend function too to have an additional Continuation parameter

 #KT-15715 Fixed
This commit is contained in:
Denis Zharkov
2017-01-17 11:29:25 +03:00
parent d0d617b44e
commit 630fab1952
8 changed files with 108 additions and 1 deletions
@@ -4561,6 +4561,12 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Coroutines extends AbstractLightAnalysisModeCodegenTest {
@TestMetadata("accessorForSuspend.kt")
public void testAccessorForSuspend() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/accessorForSuspend.kt");
doTest(fileName);
}
public void testAllFilesPresentInCoroutines() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}