Add suspend lambda annotations to invokeSuspend.
For non-suspend lambdas annotations are carried over to the invoke method so that tooling can find the annotation there. It seems reasonable that annotations are carried over to the invokeSuspend method on suspend lambdas as well so that similar tooling can be built and work for suspend lambdas.
This commit is contained in:
committed by
Alexander Udalov
parent
8bdb8ba232
commit
b7a7fce34e
+5
@@ -322,6 +322,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AnnotatedLambda extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("suspendLambda.kt")
|
||||
public void ignoreSuspendLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/suspendLambda.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user