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:
Mads Ager
2022-08-18 12:24:08 +02:00
committed by Alexander Udalov
parent 8bdb8ba232
commit b7a7fce34e
7 changed files with 71 additions and 3 deletions
@@ -27,8 +27,6 @@ fun testClass(clazz: Class<*>, name: String) {
fun box(): String {
testClass(foo0(@Ann("OK") { }), "1")
testClass(foo0( @Ann("OK") { }), "2")
testClass(foo0() @Ann("OK") { }, "3")
testClass(foo0() @Ann("OK") { }, "2")
return "OK"
}