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:
+6
@@ -7157,6 +7157,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49168.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49317.kt")
|
||||
public void testKt49317() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49317.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51530.kt")
|
||||
public void testKt51530() throws Exception {
|
||||
|
||||
+6
@@ -7199,6 +7199,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49168.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt49317.kt")
|
||||
public void testKt49317() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49317.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt51530.kt")
|
||||
public void testKt51530() throws Exception {
|
||||
|
||||
+5
@@ -6241,6 +6241,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49168.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt49317.kt")
|
||||
public void testKt49317() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt49317.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt51530.kt")
|
||||
public void testKt51530() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt51530.kt");
|
||||
|
||||
Reference in New Issue
Block a user