NI: add fallback strategy to get lexical scope to checking coroutine call legality

^KT-40247 Fixed
^KT-40337 Fixed
This commit is contained in:
Victor Petukhov
2020-07-16 11:08:12 +03:00
parent 5951e7500a
commit e754585e38
8 changed files with 83 additions and 2 deletions
@@ -4691,6 +4691,16 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@TestMetadata("suspendInvokeInsideTry.kt")
public void testSuspendInvokeInsideTry() throws Exception {
runTest("compiler/testData/diagnostics/tests/coroutines/suspendInvokeInsideTry.kt");
}
@TestMetadata("suspendInvokeInsideWhen.kt")
public void testSuspendInvokeInsideWhen() throws Exception {
runTest("compiler/testData/diagnostics/tests/coroutines/suspendInvokeInsideWhen.kt");
}
@TestMetadata("compiler/testData/diagnostics/tests/coroutines/callableReference")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)