Safely check for suspend function parent

The issue here is that the function can be in unlowered file, and
thus its parent package fragment and not class.

 #KT-49317 Fixed
This commit is contained in:
Ilmir Usmanov
2022-04-08 23:31:49 +02:00
parent 3138b29fb2
commit 1e3f84402d
10 changed files with 74 additions and 2 deletions
@@ -7914,6 +7914,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/kt46813.kt");
}
@TestMetadata("kt49317.kt")
public void testKt49317() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt49317.kt");
}
@TestMetadata("kt49645.kt")
public void testKt49645() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt49645.kt");