Files
kotlin/compiler/testData/renderFunctionDescriptorInExpression/basicLambda.kt
Denis Zharkov 4850fd10f0 Regenerate test data containing rendered descriptors
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00

13 lines
303 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") local final fun <anonymous>(): kotlin.Unit defined in box
//@Ann(x = "OK2") local final fun <anonymous>(): kotlin.Unit defined in box