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