mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
10 lines
186 B
Kotlin
Vendored
10 lines
186 B
Kotlin
Vendored
annotation class Ann(val x: String)
|
|
|
|
fun foo(block: () -> Unit) = block.javaClass
|
|
|
|
fun box() {
|
|
foo( @Ann("OK1") ({ }))
|
|
}
|
|
|
|
//local final fun <anonymous>(): kotlin.Unit defined in box
|