Files
kotlin/compiler/testData/renderFunctionDescriptorInExpression/basicFunExpr.kt
Denis Zharkov e078eaf15b Resolve annotations on lambda's descriptor
Also add test checking functional expression
2015-05-20 09:24:57 +03:00

9 lines
225 B
Kotlin

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