FE: Use safe call when searching for suspend modifier
The modifier does not exist, when the parameter type is typealias. #KT-35187 Fixed
This commit is contained in:
+6
@@ -7019,6 +7019,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineSuspendTypealias.kt")
|
||||
public void testInlineSuspendTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedTryCatchFinally.kt")
|
||||
public void testInlinedTryCatchFinally() throws Exception {
|
||||
|
||||
+6
@@ -7061,6 +7061,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineSuspendTypealias.kt")
|
||||
public void testInlineSuspendTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedTryCatchFinally.kt")
|
||||
public void testInlinedTryCatchFinally() throws Exception {
|
||||
|
||||
+5
@@ -6219,6 +6219,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendLambdaNonLocalReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSuspendTypealias.kt")
|
||||
public void testInlineSuspendTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlineSuspendTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedTryCatchFinally.kt")
|
||||
public void testInlinedTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt");
|
||||
|
||||
Reference in New Issue
Block a user