Resolve annotations on lambda's descriptor

Also add test checking functional expression
This commit is contained in:
Denis Zharkov
2015-05-08 14:59:21 +03:00
parent fd4946e552
commit e078eaf15b
11 changed files with 217 additions and 2 deletions
@@ -0,0 +1,12 @@
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