Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/resolveAnnotatedLambdaArgument.kt
T

14 lines
289 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
@Target(AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
@Repeatable
annotation class Ann
fun <T> bar(block: (T) -> Int) {}
fun foo() {
bar<Int> @Ann @[Ann] { x -> x }
bar<Int> @Ann @[Ann] label@{ x -> x }
}