mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
9 lines
330 B
Kotlin
Vendored
9 lines
330 B
Kotlin
Vendored
annotation class Ann(val x: String)
|
|
|
|
fun foo(block: (Int, String) -> Unit) = block.javaClass
|
|
|
|
fun box() {
|
|
foo( @Ann("OK1") fun(@Ann("1") x: Int, @Ann("2") y: String) {})
|
|
}
|
|
|
|
//@Ann(x = "OK1") local final fun <no name provided>(/*0*/ @Ann(x = "1") x: kotlin.Int, /*1*/ @Ann(x = "2") y: kotlin.String): kotlin.Unit defined in box |