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:
Generated
+6
@@ -6588,6 +6588,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/coroutines"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineSuspendTypealias.kt")
|
||||
public void testInlineSuspendTypealias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/coroutines/inlineSuspendTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("modifierFormBuiltinSuspendFun.kt")
|
||||
public void testModifierFormBuiltinSuspendFun() throws Exception {
|
||||
|
||||
+6
@@ -9939,6 +9939,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
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
@@ -10059,6 +10059,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user