kotlin
                                
                                 kotlin copied to clipboard
                                
                                    kotlin copied to clipboard
                            
                            
                            
                        Allow parameter annotation for lambda expression
fixes KT-17882
Sorry, I couldn't found the best way to implement tests so can you help me or can you add tests for this?
I've tested that
- dumped IR () has annotations
- compiled code with kotlinc has annotations for parameters with
fun main(args: Array<String>) {}
typealias Func = (Pair<String, String>) -> Unit;
fun test(@Ann list: List<Pair<String, String>>): (Pair<String, String>) -> Unit {
    val v0: Func = { @Ann test -> }
    //val v1: Func = { @Ann (test1, test2) -> }
    val v2: Func = { (@Ann test1, test2) -> }
    return if (list.isEmpty()) v0 else v2
}
annotation class Ann()