Resolve annotations on lambda's descriptor
Also add test checking functional expression
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
annotation class Ann(val x: String)
|
||||
|
||||
fun foo(block: () -> Unit) = block.javaClass
|
||||
|
||||
fun box() {
|
||||
foo( @Ann("OK1") fun() {})
|
||||
}
|
||||
|
||||
//Ann(x = "OK1": kotlin.String) local final fun <no name provided>(): kotlin.Unit defined in box
|
||||
Reference in New Issue
Block a user