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
+6
@@ -421,6 +421,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
public void testSamLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/samLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendLambda.kt")
|
||||
public void testSuspendLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotatedLambda/suspendLambda.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user