e078eaf15b
Also add test checking functional expression
9 lines
197 B
Kotlin
Vendored
9 lines
197 B
Kotlin
Vendored
annotation class Ann(val x: String)
|
|
|
|
fun foo(block: () -> Unit) = block.javaClass
|
|
|
|
fun box() {
|
|
foo( @Ann("OK1") (fun() {}))
|
|
}
|
|
|
|
//local final fun <no name provided>(): kotlin.Unit defined in box |